Commit Graph

2870 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
c6df2af5e9 RFC 1510 was obsoleted by 4120.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16121 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-03 14:24:36 +00:00
Love Hörnquist Åstrand
1b5f2b7362 (init_ccapi): return kerberos errors, callers expect it
(acc_get_cache_first): don't leak memory or abort on malloc failure


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16120 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-03 08:44:18 +00:00
Love Hörnquist Åstrand
183b07583a Update text about Kerberos RFC's.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16118 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-02 14:38:04 +00:00
Love Hörnquist Åstrand
02a6d6bf99 Return KRB5_CC_NOSUPP for ccErrServerUnavailable.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-01 03:37:12 +00:00
Love Hörnquist Åstrand
5be5faa722 Use all DES keys, not just des-cbc-md5, verify that they all are the same.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-30 11:20:53 +00:00
Love Hörnquist Åstrand
5cfc8bd58c Implement the cache iteration functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-30 11:16:04 +00:00
Love Hörnquist Åstrand
5ddc2e0774 Implement the cache iteration functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16108 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-30 10:10:09 +00:00
Love Hörnquist Åstrand
5eb65a941e Test the new cache iteration functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16107 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-30 10:08:01 +00:00
Love Hörnquist Åstrand
e0a769c950 Add cache iteration funcations. Add internal allocation function for
the memory of a krb5_ccache, and use it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16106 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-30 10:07:26 +00:00
Love Hörnquist Åstrand
ffe74eddd9 (krb5_cc_ops): add cache iteration functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-30 10:04:48 +00:00
Love Hörnquist Åstrand
754eec0f53 Remove leftovers, remove extra space.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16100 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-26 05:38:55 +00:00
Love Hörnquist Åstrand
70a6c9a2e4 Support cached DH variable (still need to store it though), don't
check the oid of the DH signedData for now.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-25 15:14:31 +00:00
Love Hörnquist Åstrand
8191484ee6 Wrap DH public key in a ASN.1 INTEGER wrapping.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16096 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-23 05:47:13 +00:00
Love Hörnquist Åstrand
f0bf8a5c1e (krb5_rd_cred): try both the session key and the sender subkey. Both
RFC1510 and RFC4120 say that you have to use the session key, Heimdal
uses subkey.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16092 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-23 03:37:57 +00:00
Love Hörnquist Åstrand
defb6d5697 Don't check oid's too closely, they change in Windows Vista.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16087 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-22 04:18:05 +00:00
Love Hörnquist Åstrand
c850268273 Disable sending -19, fix parsing -27 of the protocol.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16083 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-20 23:21:36 +00:00
Love Hörnquist Åstrand
0b55d28880 Remove double free, now pk-init works again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16082 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-20 22:18:24 +00:00
Love Hörnquist Åstrand
fa4a72a52b (pk_verify_chain_standard): set cert to NULL to make sure its not freed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16079 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-20 19:06:40 +00:00
Love Hörnquist Åstrand
ce7c2af147 (krb5_DES_string_to_key): If the opaque length it set to 1, and
content is 0x01, use the afs3 string-to-key.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-19 22:13:54 +00:00
Love Hörnquist Åstrand
9ea6ec2caa Remove signedness warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16076 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-19 20:23:05 +00:00
Love Hörnquist Åstrand
326478ac32 (check_directory): use passed directory name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16048 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-09 10:33:33 +00:00
Love Hörnquist Åstrand
2c714acde1 Constify password.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16046 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-08 11:38:01 +00:00
Love Hörnquist Åstrand
3e5fc8944f Document krb5_rd_req.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16035 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-05 07:56:09 +00:00
Love Hörnquist Åstrand
06a654ed20 MAN_mans+= krb5_mk_req.3
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16033 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-05 05:45:33 +00:00
Love Hörnquist Åstrand
c8d177a7b0 Document krb5_mk_req, krb5_mk_req_exact, krb5_mk_req_extended,
krb5_rd_req, krb5_rd_req_with_keyblock, krb5_mk_rep,
krb5_mk_rep_exact, krb5_mk_rep_extended, krb5_rd_rep,
krb5_build_ap_req, krb5_verify_ap_req.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16032 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-05 05:44:08 +00:00
Love Hörnquist Åstrand
4196a3bb90 (check_transited): Allow empty content of type 0 because that is was
Microsoft enerates in their TGT.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15994 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-27 05:48:57 +00:00
Love Hörnquist Åstrand
b962bee342 Add test_hostname to check_PROGRAMS but not TESTS, I have no same dns to use.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15966 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-23 20:20:19 +00:00
Love Hörnquist Åstrand
61302516a6 Testprogram for krb5_expand_hostname() and krb5_expand_hostname_realms().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15965 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-23 20:18:55 +00:00
Love Hörnquist Åstrand
0f7be5896b (krb5_425_conv_principal_ex2): Remove shadowing variable.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15953 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-23 08:34:40 +00:00
Love Hörnquist Åstrand
13ef94d8d7 (dns_find_realm): Fix const warnings, plug memory leak. From: Stefan
Metzmacher <metze@samba.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15950 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-23 08:14:02 +00:00
Love Hörnquist Åstrand
d0fdf95591 Document what happens with NULL to krb5_config_free_strings
(nothing). Mdoc nit.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15949 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-23 08:09:34 +00:00
Love Hörnquist Åstrand
825cc1ee2a Fix printing of size_t.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15942 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-22 14:05:20 +00:00
Love Hörnquist Åstrand
d78bed5eaa Save the request buffer so that pre-auth mechanism that needs it can
verify the reply.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15933 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-13 08:25:32 +00:00
Love Hörnquist Åstrand
e890ac91be Rename logf to avoid shadowing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15931 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-12 13:43:46 +00:00
Love Hörnquist Åstrand
9e2b81fa10 Fix the version number for fcc-mit-ticketflags.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15928 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-12 13:32:11 +00:00
Love Hörnquist Åstrand
a20802f00e Revert previous, I was confused.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15927 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-12 13:31:19 +00:00
Love Hörnquist Åstrand
d79c64be70 Document fcc-mit-ticketflags in COMPATIBILITY section.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15925 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-12 10:16:28 +00:00
Love Hörnquist Åstrand
d48840959b (fcc_store_cred): default to MIT style ticket flags.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15924 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-12 10:11:47 +00:00
Love Hörnquist Åstrand
329cb0079e Update prototype for krb5_create_checksum.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15921 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-12 09:01:22 +00:00
Love Hörnquist Åstrand
f7aeb827d3 Implement verification of asChecksum, now client side code is using
-27 of the pk-init draft.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-12 08:53:00 +00:00
Love Hörnquist Åstrand
bf6c904f6c add tests vectors from "Liqiang(Larry) Zhu" <lzhu@windows.microsoft.com>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15866 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-10 10:07:21 +00:00
Love Hörnquist Åstrand
4f3db39a0d even more bits, not done yet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-10 07:03:54 +00:00
Love Hörnquist Åstrand
a4b7d96497 Add krb5_verify_opt_alloc and krb5_verify_opt_free.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15857 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-09 16:32:38 +00:00
Love Hörnquist Åstrand
4e9c85d51c Document krb5_verify_opt_alloc and krb5_verify_opt_free.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15856 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-09 16:29:31 +00:00
Love Hörnquist Åstrand
b24968272f Adapt to IMPLICIT changes in CMS module.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15714 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-23 10:42:01 +00:00
Love Hörnquist Åstrand
73a3559e78 TESTS += test_pkinit_dh2key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15689 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-20 16:28:29 +00:00
Love Hörnquist Åstrand
5f10d59828 framework for testing _krb5_pk_octetstring2key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15688 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-20 16:27:58 +00:00
Love Hörnquist Åstrand
a15603afa7 (_krb5_pk_octetstring2key): make sha1 output unsigned char to match openssl
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-20 07:22:43 +00:00
Love Hörnquist Åstrand
d9eb674e71 (krb5_rd_cred): don't leak memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15643 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 08:22:50 +00:00
Love Hörnquist Åstrand
0f1c19edb9 (krb5_get_credentials_with_flags): only call krb5_cc_retrieve_cred
once, and plug memory leak.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15639 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 07:38:02 +00:00