Commit Graph

2218 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
2b7e870bf4 (init_cred_loop): handle KRB5KRB_ERR_RESPONSE_TOO_BIG and loop again,
this time requesting LARGE_MSG from send to kdc, and if this is the
second time bail out; try to free memory


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12930 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 18:05:27 +00:00
Love Hörnquist Åstrand
bce36e1e1e (krb5_sendto_kdc_flags): new function, and then implement the order
krb5_sendto_kdc* function with this function.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 17:39:53 +00:00
Love Hörnquist Åstrand
9f1541abe3 (krb5_krbhst_init_flags): new function, use it and adapt callers
(krbhst_get_default_proto): new function, returns udp, or in case
large_msg was requested for the krb5_krbhst_data, use tcp.
(*): if the flag KD_LARGE_MSG was set on the krb5_krbhst_data, avoid
using udp, use krbhst_get_default_proto


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12928 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 17:38:18 +00:00
Love Hörnquist Åstrand
fb67a350b5 flags for krb5_krbhst_init_flags (and krb5_send_to_kdc_flags)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12927 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-30 17:33:50 +00:00
Love Hörnquist Åstrand
29f526b115 (krb5_rd_req): if we have a keyblock in auth context, use that
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-23 10:43:50 +00:00
Love Hörnquist Åstrand
d3c498eae5 use _krb5_get_init_creds_opt_copy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12897 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-21 16:51:13 +00:00
Love Hörnquist Åstrand
9578214707 don't export krb5_get_init_creds_opt_copy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12896 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-21 16:50:02 +00:00
Love Hörnquist Åstrand
b3ea5d4d2b add arcfour and aes as valid enctypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12890 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-20 00:10:33 +00:00
Love Hörnquist Åstrand
ef91ed3046 (krb5_get_init_creds_opt_copy): add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12877 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 22:37:59 +00:00
Love Hörnquist Åstrand
286019f6cd (krb5_rd_req): allow caller to pass in a key in the auth_context, they
way processes that doesn't use the keytab can still pass in the key of
the service (matches behavior of MIT Kerberos).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 22:22:57 +00:00
Love Hörnquist Åstrand
332e117688 (init_init_creds_ctx): make void since it doesn't return an error,
update call sites
(krb5_get_init_creds_keytab): add out label again


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12874 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 22:20:50 +00:00
Love Hörnquist Åstrand
21554e0cbb collect all init_creds context into a structure so it can easier be
passed around, also, while here, change nonce for every request


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12847 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 18:40:44 +00:00
Love Hörnquist Åstrand
70f79440e5 (init_as_req): don't realloc data before the loop, add_padata() will
handle that itself


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12843 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 00:38:59 +00:00
Love Hörnquist Åstrand
a453cdbddc (add_addrs): don't increase addr->len until in contains interesting
data, use right iteration counter when clearing the addresses


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12842 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-18 00:21:00 +00:00
Love Hörnquist Åstrand
6e10f776c4 (log_realloc): increase len after realloc returns sucessfully
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12841 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-17 23:56:14 +00:00
Love Hörnquist Åstrand
8f56b409d0 fix another int vs krb5_error_code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12828 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 15:12:08 +00:00
Love Hörnquist Åstrand
c82cfd62b2 fix prototypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12825 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-12 15:04:43 +00:00
Love Hörnquist Åstrand
5d190295aa add context argument to krb5_get_init_creds_opt_alloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:28:20 +00:00
Love Hörnquist Åstrand
96273416f9 (krb5_get_init_creds_opt_alloc): add context argument
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12782 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:25:02 +00:00
Love Hörnquist Åstrand
8cec741ab3 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12781 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-08 15:23:49 +00:00
Love Hörnquist Åstrand
672fd697ee (add_file): make len argument an pointer to an integer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 18:15:45 +00:00
Johan Danielsson
6a621def0e document appdefaults/{forward,encrypt}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12771 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 14:30:04 +00:00
Love Hörnquist Åstrand
646ee1b761 break out the encrypt timestamp preauth to its function
break out the pa_data_to_key_plain to its own function
make more variables const


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12766 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 05:30:48 +00:00
Love Hörnquist Åstrand
e44d866589 s/des_read_pw_string/UI_UTIL_read_pw_string/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12765 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 01:14:12 +00:00
Love Hörnquist Åstrand
3cd7e6c162 Add key usage for encryption of the SAM-NONCE-OR-SAD field.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12762 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 11:53:25 +00:00
Love Hörnquist Åstrand
eac04f34dc assume session key is a char array of length 8
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 11:11:07 +00:00
Love Hörnquist Åstrand
54fc57ccb5 s/des_read_pw_string/UI_UTIL_read_pw_string/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12753 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:37:03 +00:00
Love Hörnquist Åstrand
33efaf1f26 switch from the des_ to the DES_ api
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12752 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:29:36 +00:00
Love Hörnquist Åstrand
61e14619de use krb5_get_init_creds_opt_alloc/krb5_get_init_creds_opt_free
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:31:42 +00:00
Love Hörnquist Åstrand
0d372b0a5b fix [Gt]
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12734 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 00:13:07 +00:00
Love Hörnquist Åstrand
eb2c032414 (krb5_get_init_creds_password): handle password passed in though context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12732 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:41:34 +00:00
Love Hörnquist Åstrand
90b82c4533 (TESTS): += test_config
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12731 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:21:23 +00:00
Love Hörnquist Åstrand
1752eb97e0 move variable thats used within a #ifdef to be defined within that #ifdef
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12730 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:20:46 +00:00
Love Hörnquist Åstrand
9582b9fe1a (krb5_data_free): reset whole krb5_data when freeing it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12729 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-02 23:19:17 +00:00
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