Commit Graph

2936 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand
9d8ec6711a Test krb5_cc_copy_cache and krb5_cc_cache_match.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16188 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-19 17:31:39 +00:00
Love Hörnquist Åstrand
cc7855865c (krb5_cc_cache_match): add function that iterates over all credential
caches for a user and returns a match.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16187 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-19 17:30:40 +00:00
Love Hörnquist Åstrand
0a2f9014cc Fix all prototypes, they got krb5_context argument wrong.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16184 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-19 07:39:01 +00:00
Love Hörnquist Åstrand
959cc8f926 Update .Dd and (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16183 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-19 07:37:27 +00:00
Love Hörnquist Åstrand
4269d4e6dc Add krb5_cc_start_seq_get and an example.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16182 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-19 07:35:19 +00:00
Love Hörnquist Åstrand
6fcc9f4922 Specify that krb5_unparse_name sets name to NULL on failure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16178 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-16 10:42:17 +00:00
Johan Danielsson
7e25d8fb09 remove dump_config as there's a --dumpconfig for verify_krb5_conf now
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16177 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-13 15:44:21 +00:00
Love Hörnquist Åstrand
45d2b74ced Add example how to use krb5_get_credentials.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-13 14:24:49 +00:00
Love Hörnquist Åstrand
8592c8225b Clarifiying comment.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16175 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-13 03:30:14 +00:00
Love Hörnquist Åstrand
e42d007ce9 Rename private to opt_private.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16169 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-12 12:45:27 +00:00
Love Hörnquist Åstrand
296d9d6457 rename element private to opt_private to make c++ picky compilers less upset.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16167 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-12 12:41:04 +00:00
Love Hörnquist Åstrand
5d64a49fa7 (krb5_get_init_creds_opt): rename element private to opt_private to
make cpp picky compilers less upset.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16166 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-12 12:39:28 +00:00