Commit Graph

37 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
c61ef0d7ab Move keyset parsing and password based keyset generation into hdb.
Requested by Andrew Bartlett <abartlet@samba.org> for hdb-ldb backend


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14297 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-11 23:50:25 +00:00
Love Hörnquist Åstrand
cf112007d1 (parse_key_set): do way with static returning (function) static
variable and returned allocated memory
(_kadm5_generate_key_set): free enctypes returned by parse_key_set


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14217 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-12 12:08:40 +00:00
Love Hörnquist Åstrand
f0aee06246 Fix memory leak, don't return stack variables
From Andrew Bartlett


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-06 11:39:10 +00:00
Love Hörnquist Åstrand
c9d296148a make all_etypes const and move outside function to avoid returning
data on stack


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14198 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-06 11:25:30 +00:00
Love Hörnquist Åstrand
423fef40e4 (_kadm5_generate_key_set): since arcfour-hmac-md5 is without salting,
some people tries to add the string "arcfour-hmac-md5" when they
really should have used "arcfour-hmac-md5:pw-salt", help them and add
glue for that


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14152 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-25 15:29:09 +00:00
Love Hörnquist Åstrand
6b07954615 (_kadm5_set_keys_randomly): make sure enctype to copy enctype for des keys
From: Andrew Bartlett <abartlet@samba.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13409 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-29 06:12:50 +00:00
Love Hörnquist Åstrand
d420dc5958 (_kadm5_set_*): don't change the kvno, let the callee to that
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13405 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-29 05:49:29 +00:00
Love Hörnquist Åstrand
1d1e4bc424 (_kadm5_set_keys_randomly): remove dup return
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 18:38:16 +00:00
Love Hörnquist Åstrand
599c39e257 use default_keys for the both random keys and password derived keys if
its defined


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12543 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-15 16:38:28 +00:00
Love Hörnquist Åstrand
3fef574a4e (make_keys): add aes support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12402 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-25 23:56:58 +00:00
Love Hörnquist Åstrand
356775a1a0 fix off by one in the aes case, pointed out by Ken Raeburn
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12400 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-25 23:36:17 +00:00
Love Hörnquist Åstrand
2d2d16d817 (_kadm5_set_keys_randomly): add ETYPE_AES256_CTS_HMAC_SHA1_96 key when
configuried with aes support


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12185 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-30 17:17:12 +00:00
Johan Danielsson
2dbc6b6ddf fix some problems with previous
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10490 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-13 15:12:16 +00:00
Johan Danielsson
85c00b0cfa add easier afs configuration, defaulting to the local realm in lower
case; also try to remove duplicate salts


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10486 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-13 13:19:39 +00:00
Assar Westerlund
03594ac148 (make_keys): clean-up salting loop and try not to leak memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9197 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 23:13:30 +00:00
Assar Westerlund
4f94484b76 (free_keys, init_keys): elevate to internal kadm5 functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8766 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-22 05:52:33 +00:00
Assar Westerlund
f30bc712c9 (make_keys): also support `[kadmin]use_v4_salt' for backwards
compatability


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8569 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-07 16:39:38 +00:00
Johan Danielsson
42641579fd (_kadm5_set_keys): rewrite this to be more easily adaptable to
different salts


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8458 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-26 14:22:02 +00:00
Assar Westerlund
5ca9dc1371 (_kadm5_set_keys2): rewrite
(_kadm5_set_keys3): add


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8064 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-23 23:06:31 +00:00
Assar Westerlund
ed294c6619 (_kadm5_set_keys): make clearer by changing negative to possitive
condition


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7514 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 23:11:01 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
11c284c11e (_kadm5_set_keys_randomly): set enctypes correctly in the copied keys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7299 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-04 01:55:50 +00:00
Assar Westerlund
adea1b4679 (free_keys): free more memory
(_kadm5_set_keys): a little bit more generic
(_kadm5_set_keys_randomly): new function for setting random keys.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7167 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-17 15:11:57 +00:00
Assar Westerlund
907d81ab5c (_kadm5_set_keys): ignore old keys when setting new ones and always
add 3 DES keys and one 3DES key


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7143 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-14 13:02:06 +00:00
Assar Westerlund
14a833b452 comments
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7103 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-03 20:16:21 +00:00
Assar Westerlund
81d02e26a3 (_kadm5_set_keys2): don't check the recently created memory for NULL
pointers


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6135 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-04 19:58:57 +00:00
Johan Danielsson
5865b0a4a4 remove free
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6100 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-03 17:14:22 +00:00
Johan Danielsson
6a32d5aeba clear mkvno
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6098 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-03 17:10:18 +00:00
Johan Danielsson
97edf08c22 add _kadm5_set_keys2 to sey keys from key_data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6076 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-03 16:40:27 +00:00
Assar Westerlund
0b861af5fc (_kadm5_set_keys): free salt when zapping it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5764 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-25 03:40:51 +00:00
Johan Danielsson
aaae186ab9 merge new-crypto branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5332 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-11 21:03:59 +00:00
Johan Danielsson
25b8ac84a1 add KEYTYPE_USE_AFS3_SALT to keytype if using AFS3 salt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5150 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-09-15 15:02:24 +00:00
Assar Westerlund
64f03bff59 (_kadm5_set_keys): initialize `ret'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5053 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-30 16:11:59 +00:00
Johan Danielsson
e950ece0ef check config file for kadmin/use_v4_salt before zapping version 4
salts


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4952 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-26 12:03:30 +00:00
Johan Danielsson
b7ebe1debf Rename krb5_free_keyblock to krb5_free_keyblock_contents.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3917 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 01:52:46 +00:00
Johan Danielsson
9b9cd3252f Add copyright and rcs string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3781 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-05 23:23:33 +00:00
Johan Danielsson
36de714126 Moved from create/chpass
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3731 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-01 00:43:38 +00:00