Commit Graph

2998 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
4ecc7c1493 Revert previous commit.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16697 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:50:37 +00:00
Love Hörnquist Åstrand
07bb0509dd (krb5_get_error_message): peek inside the context and make a copy of
the error string.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16696 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:47:01 +00:00
Love Hörnquist Åstrand
713880c9a3 update (c) and .Dd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16695 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:41:00 +00:00
Love Hörnquist Åstrand
d353b1f751 Document krb5_get_error_message.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16694 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:40:25 +00:00
Love Hörnquist Åstrand
7b20682f7b (krb5_get_error_message): new function, and combination of
krb5_get_error_string and krb5_get_err_text


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16693 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:36:45 +00:00
Love Hörnquist Åstrand
c5fe204436 sort, and krb5_get_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16692 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:33:14 +00:00
Love Hörnquist Åstrand
0562239eb9 (krb5_get_init_creds_opt_set_default_flags): Use
KRB5_ADDRESSLESS_DEFAULT when checking [appdefault]no-addresses.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16689 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 11:42:31 +00:00
Love Hörnquist Åstrand
2b37c08fa7 (get_cred_from_kdc_flags): Use KRB5_ADDRESSLESS_DEFAULT when checking
[appdefault]no-addresses.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16688 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 11:41:02 +00:00
Love Hörnquist Åstrand
1bb5af8ef5 (krb5_get_forwarded_creds): Use [appdefault]no-addresses before
checking if the krbtgt is address-less, use KRB5_ADDRESSLESS_DEFAULT.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16687 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 11:37:29 +00:00
Love Hörnquist Åstrand
99dd89912c Introduce KRB5_ADDRESSLESS_DEFAULT that controlls all address-less behavior.
Defaults to false.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16686 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 11:27:40 +00:00
Love Hörnquist Åstrand
e02cf71271 main is not a KRB5_LIB_FUNCTION
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16682 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-01 12:45:13 +00:00
Love Hörnquist Åstrand
bbebb7cc34 (krb5_mk_priv): abort if ASN1_MALLOC_ENCODE failes to produce the
matching lenghts.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16680 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-01 12:39:26 +00:00
Love Hörnquist Åstrand
8bd0927d3b (krb5_cc_set_default_name): use KRB5_DEFAULT_CCNAME.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16398 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-13 15:42:36 +00:00
Love Hörnquist Åstrand
2c7a8bc348 Add KRB5_DEFAULT_CCNAME, pointer to default credential cache.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16397 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-13 15:40:50 +00:00
Love Hörnquist Åstrand
498d67f815 Add some more entrypoints.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16385 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:50:28 +00:00
Love Hörnquist Åstrand
b15b04eadd If there is a target principal, use the realm of the realm to change
the password with,


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16384 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:48:57 +00:00
Love Hörnquist Åstrand
a28a141ec2 Constify principal argument to on krb5_principal_get_ functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16362 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-11 17:48:38 +00:00
Love Hörnquist Åstrand
a7589e6109 more tests, From Andrew Bartlet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16353 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-05 18:44:02 +00:00
Love Hörnquist Åstrand
08b361da54 (mkt_remove_entry): realloc can return NULL on success in the case 0
entries are allocated, From Andrew Bartlet


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16352 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-05 18:39:46 +00:00
Love Hörnquist Åstrand
828197fc78 (acl_parse_format): tmp needs to be freed too on failure to parse
format specifier.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16345 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-02 15:33:47 +00:00
Love Hörnquist Åstrand
2b64016a93 Free more of the allocated memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16344 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-02 15:15:43 +00:00
Love Hörnquist Åstrand
eb0369c938 (krb5_derive_key): Free more of the allocated memory, this function is
only used by the test program.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16343 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-02 14:47:44 +00:00
Love Hörnquist Åstrand
e4794726e4 Free more of the allocated memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16342 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-02 14:14:43 +00:00
Love Hörnquist Åstrand
bc23e0056b Memory keytab are now named and refcounted.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16327 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 12:41:22 +00:00
Love Hörnquist Åstrand
76fe170bdd Test that memory keytab are refcounted.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16326 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 12:40:50 +00:00
Love Hörnquist Åstrand
b6037cc29a Index by name and start reference counting on entries.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16325 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-01 12:40:22 +00:00
Love Hörnquist Åstrand
d6931c3fea (krb5_address_type): add KRB5_ADDRESS_NETBIOS (20)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16322 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-30 15:20:32 +00:00
Love Hörnquist Åstrand
116c7fa6f6 Remove usage of krb5_enctype_to_keytype.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16317 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-30 11:25:45 +00:00
Love Hörnquist Åstrand
68caf40b2c (libdefaults_entries): add default_cc_name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16313 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 18:59:19 +00:00
Love Hörnquist Åstrand
56538b207f Update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16310 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 18:22:51 +00:00
Love Hörnquist Åstrand
755229f6d3 (krb5_verify_ap_re2): check timestamp in authenticator
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16309 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 15:55:34 +00:00
Love Hörnquist Åstrand
ca1a379a41 (check_transited): explain the TR-type 0 better and why it matters.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16308 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 14:14:26 +00:00
Love Hörnquist Åstrand
d7b6e1f223 test krb5_cc_get_prefix_ops
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16307 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 09:11:12 +00:00
Love Hörnquist Åstrand
6ccf928a53 (krb5_cc_get_prefix_ops): change the behavior to return NULL when its
not found, and fcc when the name starts with a '/'. Almost matches
behavior in other parts of the code, but can't really do that since
the name passed in to this function may only contain the prefix itself
without the colon.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16306 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 09:10:47 +00:00
Love Hörnquist Åstrand
459932f3ef (krb5_cc_get_prefix_ops): if there are not colon (:) in the name, its
a file credential cachce


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16305 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-29 08:44:21 +00:00
Love Hörnquist Åstrand
d3d5392e05 (krb5_get_forwarded_creds): use session key for delegated credentials
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16300 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-28 20:43:02 +00:00
Love Hörnquist Åstrand
27546db2b4 (krb5_kt_get_full_name): new function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16295 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-25 21:46:40 +00:00
Love Hörnquist Åstrand
52e365482b Split encryption and s2k iterations to diffrent counters, 38seconds of
aes256 s2k is way too long.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16290 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-24 09:57:50 +00:00
Love Hörnquist Åstrand
2f31564fc4 Add timing code for s2k function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16289 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-24 09:54:49 +00:00
Love Hörnquist Åstrand
52bb24b476 s/RFC2140/RFC4120/ From Andrew Bartlet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16278 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-02 08:36:42 +00:00
Love Hörnquist Åstrand
333284ed2e Document krb5_cc_get_full_name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16274 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-01 09:40:23 +00:00
Love Hörnquist Åstrand
91f8f1ce51 (krb5_cc_get_full_name): Add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16273 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-11-01 09:36:41 +00:00
Love Hörnquist Åstrand
881e730620 Spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16248 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-27 13:21:42 +00:00
Love Hörnquist Åstrand
9b2fa77b4d (krb5_ticket_get_authorization_data_type): understand
KRB5_AUTHDATA_IF_RELEVANT and KRB5_AUTHDATA_AND_OR (but have
KRB5_AUTHDATA_KDC_ISSUED commented out for now)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16247 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-27 13:18:25 +00:00
Love Hörnquist Åstrand
65447e1a4b Install krb5_set_password.3, Johnny Lam <jlam@pkgsrc.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16230 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 09:08:18 +00:00
Love Hörnquist Åstrand
9319b9dce1 Fix mdoc for krb5_encrypt_EncryptedData, Johnny Lam <jlam@pkgsrc.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16229 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 08:50:09 +00:00
Love Hörnquist Åstrand
993ae3a82f (_krb5_dh_group_ok): if not enough bits are generated from the DH groups, fail.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16211 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-21 17:18:38 +00:00
Love Hörnquist Åstrand
8a06dac4ff Add option to require binding between reply and response.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16196 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-20 09:29:19 +00:00
Love Hörnquist Åstrand
79146c3e71 Try both ReplyKey and ReplyKey-Win2k for the Windows case to support
the updated -09 protocol (using asChecksum). Tell KDC we support this
by sending KRB5-PADATA-PK-AS-09-BINDING in the pa-data.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16192 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-19 21:15:41 +00:00
Love Hörnquist Åstrand
42ec2bd7b5 Test copy FILE -> FILE, and MEMORY -> MEMORY too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16189 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-19 17:36:09 +00:00