Love Hörnquist Åstrand
70efc47aa7
(krb5_keyblock_zero): new function, zeros out a keyblock
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12728 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:17:59 +00:00
Love Hörnquist Åstrand
aa3701f551
rewrite/implement krb5_get_init_creds_password with new preauth
...
handing, still it can only work with krb5-pa-enc-timestamp for
preauth, but now it can handle etype-info2
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12727 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:17:08 +00:00
Love Hörnquist Åstrand
ca9d0c8062
(krb5_get_init_creds_opt_alloc): allocate a opt structure
...
(krb5_get_init_creds_opt_free): free a opt structure
(krb5_get_init_creds_opt_set_pa_password): set preauth info for enc-timestamp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12726 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:12:54 +00:00
Love Hörnquist Åstrand
3400abc1ef
add struct _krb5_get_init_creds_opt_private
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12725 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:11:17 +00:00
Love Hörnquist Åstrand
24b09630d3
add SAM keyusage numbers
...
add s2k proc typedef
add a pointer to a private part of krb5_get_init_creds_opt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12723 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 20:51:48 +00:00
Love Hörnquist Åstrand
a3af14abf9
(krb5_ticket_get_authorization_data_type): reindent
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12711 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 19:32:57 +00:00
Love Hörnquist Åstrand
0c533c290e
fix spelling in last commit
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12710 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 14:51:06 +00:00
Love Hörnquist Åstrand
af371af07a
(krb5_copy_ticket): free all data when failing, copy data to right
...
memory, the later pointed out by Luke Howard.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12709 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-31 02:05:31 +00:00
Love Hörnquist Åstrand
b28bc0ec58
cfx-01 use diffrent usage numbers
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12705 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-30 13:45:21 +00:00
Love Hörnquist Åstrand
ea0b1265fa
add KEYTYPE_ARCFOUR_56
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-28 07:52:23 +00:00
Love Hörnquist Åstrand
9ecd1c0860
CFX uses slightly diffrent usage numbers
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12650 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-26 17:26:40 +00:00
Love Hörnquist Åstrand
1e1f234862
(usage2arcfour): simplify, only include special cases
...
From: Luke Howard <lukeh@PADL.COM >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12644 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 22:38:33 +00:00
Love Hörnquist Åstrand
61413db01f
(arcfour_checksum_p): return true when is arcfour, not when its not
...
pointed out by Luke Howard
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12627 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 11:09:19 +00:00
Love Hörnquist Åstrand
2ff6bd0665
document: krb5_crypto_getconfoundersize, krb5_crypto_getblocksize
...
krb5_crypto_getenctype, krb5_crypto_getpadsize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12622 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-24 03:40:33 +00:00
Love Hörnquist Åstrand
d250fe4e0c
(krb5_crypto_getpadsize, krb5_crypto_getconfoundersize): added
...
From: Luke Howard <lukeh@PADL.COM >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12621 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-24 03:32:48 +00:00
Love Hörnquist Åstrand
28a86465f4
text about when krb5_crypto_get_checksum_type is useful
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12615 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 11:49:38 +00:00
Love Hörnquist Åstrand
7df97da057
document krb5_crypto_get_checksum_type
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12614 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 11:37:17 +00:00
Love Hörnquist Åstrand
71bc13390a
(krb5_crypto_get_checksum_type): fix format string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12613 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 11:36:00 +00:00
Love Hörnquist Åstrand
2eaeba1f93
add krb5_crypto_get_checksum_type
...
From: Luke Howard <lukeh@PADL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12612 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 11:33:53 +00:00
Love Hörnquist Åstrand
7c8f875744
XXX don't use "plain" pthread support on netbsd
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12605 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-20 20:11:58 +00:00
Love Hörnquist Åstrand
c2680f2373
Do the arcfour checksum mapping for krb5_create_checksum and
...
krb5_verify_checksum, From: Luke Howard <lukeh@PADL.COM >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-20 15:09:39 +00:00
Love Hörnquist Åstrand
027455cbf0
check krb5_prepend_config_files_default and krb5_prepend_config_files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12584 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-18 05:14:38 +00:00
Love Hörnquist Åstrand
bec7df49db
add krb5_prepend_config_files and krb5_prepend_config_files_default
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-18 05:09:05 +00:00
Love Hörnquist Åstrand
97a9cc6936
please lint (and me)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12571 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 18:22:22 +00:00
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