Commit Graph

2160 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
3b71428beb these function will be deprecated
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12566 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 16:27:15 +00:00
Love Hörnquist Åstrand
e29f5d55cd man_MANS += krb5_get_init_creds.3
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12564 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 16:23:17 +00:00
Love Hörnquist Åstrand
d7d3939e93 begining of documentation of krb5_get_init_creds
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12563 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 16:21:36 +00:00
Love Hörnquist Åstrand
bc32f47208 (krb5_get_in_tkt): for compatibility with with the mit implemtation,
don't free `creds' argument when done, its up the the caller to do
that, also allow a NULL ccache.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12561 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 15:52:01 +00:00
Love Hörnquist Åstrand
3ee67f793f document tgs_require_subkey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12559 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-16 20:00:28 +00:00
Love Hörnquist Åstrand
1a22071676 (init_tgs_req): make generation of subkey optional on configuration parameter
[realms]realm={tgs_require_subkey=bool}
defaults to off. The RFC1510 weakly defines the correct behavior,
so old DCE secd apparently required the subkey to be there, and MS will
use it when its there. But the request isn't encrypted in the subkey,
so you get to choose if you want to talk to a MS mdc or a old DCE secd.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12550 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-16 16:25:14 +00:00
Love Hörnquist Åstrand
05cd3d1a7f (unparse_name): len can't be zero, so, don't check for that
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12536 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-15 14:28:48 +00:00
Love Hörnquist Åstrand
7fa222d32b (unparse_name): make sure there are space for a NUL, set *name to NULL
when there is a failure (so caller can't get hold of a freed pointer)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12524 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-13 09:16:59 +00:00
Love Hörnquist Åstrand
22c4cb4b88 remove duplicate manual, from cjep@netbsd.org
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12519 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-26 17:05:42 +00:00
Love Hörnquist Åstrand
32a39134cf indent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12518 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-25 11:33:29 +00:00
Love Hörnquist Åstrand
f837df3b5a (krb5_cc_set_default_name): only read KRB5CCNAME when not suid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12516 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-25 08:26:36 +00:00
Love Hörnquist Åstrand
52eb0189cb (read_v4_entry): the des key is 8 bytes, use a char array instead of des_cblock
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12513 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-24 13:43:06 +00:00
Love Hörnquist Åstrand
78d1c49923 (hmac): make it return an error when out of memory, update callsites
to either return error or use krb5_abortx
(krb5_hmac): expose hmac


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12510 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-23 13:06:24 +00:00
Love Hörnquist Åstrand
9caa168b54 (krb5_keyblock_get_enctype): return enctype of keyblock
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12502 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 21:40:17 +00:00
Love Hörnquist Åstrand
cc0a5435fe (man_MANS): += krb5_keyblock.3
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12501 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 21:27:06 +00:00
Love Hörnquist Åstrand
c8cb88a62c some information about krb5_keyblock and related functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12500 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 21:25:22 +00:00
Love Hörnquist Åstrand
cef811fcb6 make the non-debug version of the mutex macros "use" the "mutex"
integer so the compile wont complain about defined unused variables


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12499 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 21:10:50 +00:00
Love Hörnquist Åstrand
3f2394ad11 make thread local storage macros take a "return" argument so no
functions need to be created for the no-pthread case


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12498 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 19:57:58 +00:00
Love Hörnquist Åstrand
df6940ae2b only enable netbsd thread support if ENABLE_PTHREAD_SUPPORT is defined (so it can be disabled)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12492 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 19:13:12 +00:00
Love Hörnquist Åstrand
e2a4344ba6 adding RWLOCKS and [sg]etspecific
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12490 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 19:00:06 +00:00
Love Hörnquist Åstrand
7a095e2381 add ticket access functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12483 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 12:18:26 +00:00
Love Hörnquist Åstrand
aa10794d91 add some more krb5_c functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12482 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 10:23:28 +00:00
Love Hörnquist Åstrand
6d719817e4 (krb5_cksumtype_valid): check is checksum type is a valid one
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 10:14:05 +00:00
Love Hörnquist Åstrand
e62ea35927 (krb5_checksum_is_keyed): only set extented error string when there is a context
(krb5_checksum_is_collision_proof): ditto


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12480 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-22 10:08:50 +00:00
Love Hörnquist Åstrand
b96d3e3b50 (krb5_c_get_checksum): make type and data argument optional
(krb5_c_{encrypt,decrypt}): return "better" error codes for invalid ivec length


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12478 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-21 21:16:26 +00:00
Love Hörnquist Åstrand
8967eaa719 update krb5_c_get_checksum usage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12477 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-21 21:12:46 +00:00
Love Hörnquist Åstrand
2b396ee7e8 (krb5_crypto_getenctype): new function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12475 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-21 20:21:34 +00:00
Love Hörnquist Åstrand
ec7eabd6d4 add krb5_enc_data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12467 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-21 13:00:09 +00:00
Love Hörnquist Åstrand
0a0729dd08 add krb5_c_ functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12454 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-19 09:17:15 +00:00
Love Hörnquist Åstrand
150ffb9adb support passing in NULL as the cipher_state/ivec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12453 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-19 07:40:53 +00:00
Love Hörnquist Åstrand
0cfe6c3513 add test for krb5_c_encrypt_length and krb5_c_decrypt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12452 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-19 07:40:02 +00:00
Love Hörnquist Åstrand
ea7327e39d (wrapped_length/wrapped_length_derived): when calculating the length
of the encrypted data, use the keyed checksum length if the enctype
supports a keyed checksum. This only matter for aes, for all other
enctypes the key and unkeyed checksum have the same length.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-19 07:34:12 +00:00
Love Hörnquist Åstrand
8c720307bc krb5_c encryption glue
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12449 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-19 06:52:54 +00:00
Love Hörnquist Åstrand
144d4010c3 first version of krb5_c encryption glue
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12448 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-18 22:00:21 +00:00
Love Hörnquist Åstrand
dd752eed03 don't return value in void function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12442 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-16 14:46:46 +00:00
Love Hörnquist Åstrand
3f12b14e68 (krb5_compare_creds): if client is specified in the mcreds, check that too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12441 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-15 17:53:48 +00:00
Love Hörnquist Åstrand
283630104a prefix libasn1 types with heim_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12439 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-15 14:05:49 +00:00
Love Hörnquist Åstrand
63711b92db (init_tgs_req): in case of error, don't free in the req_body addresses
since they where pass in by caller
(find_cred): use krb5_cc_clear_mcred


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12423 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-06 23:28:34 +00:00
Love Hörnquist Åstrand
91f5bdc308 document krb5_cc_clear_mcred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12422 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-06 23:24:59 +00:00
Love Hörnquist Åstrand
80b7b535a2 (krb5_cc_clear_mcred): new function, clear a krb5_creds to use with
krb5_cc_retrieve_cred


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12421 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-06 23:23:05 +00:00
Love Hörnquist Åstrand
310984c158 (krb5_mk_req_internal): when using arcfour-hmac-md5, use an unkeyed
checksum (rsa-md5), since Microsoft calculates the keyed checksum with
the subkey of the authenticator.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12409 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-28 21:05:12 +00:00
Love Hörnquist Åstrand
bd7246b6cb add _krb5_krb_tf_setup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12407 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-28 20:59:59 +00:00
Love Hörnquist Åstrand
068acbc06a (_krb5_krb_tf_setup): create/append v4 credential to a new krb4
ticket file


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12406 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-28 20:56:41 +00:00
Johan Danielsson
b6a7633851 put Nd argument in double quotes since it contains more than 9 words; from wiz
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12404 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-27 15:40:03 +00:00
Love Hörnquist Åstrand
809afeb35f add missing " within #if 0, from stefan sokoll <stefansokoll@yahoo.de>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12399 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-25 15:02:17 +00:00
Love Hörnquist Åstrand
5979907af6 improve krb5_set_real_time text
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12397 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-24 05:12:43 +00:00
Love Hörnquist Åstrand
f6ef3a180e improve comment for krb5_set_real_time
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12396 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-24 05:09:42 +00:00
Love Hörnquist Åstrand
4b37d153b9 (krb5_get_forwarded_creds): pass in a krb5_timestamp to krb5_us_timeofday
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12392 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-22 20:49:49 +00:00
Love Hörnquist Åstrand
f02872a9c1 (krb5_mk_error): pass in a krb5_timestamp to krb5_us_timeofday
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12391 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-22 20:47:14 +00:00
Love Hörnquist Åstrand
ca8c289837 (krb5_set_real_time): fix comment and make it work
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12390 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-22 20:35:27 +00:00