Commit Graph

4509 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand
237641e2ca update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15634 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 06:08:07 +00:00
Love Hörnquist Åstrand
f1542ef9cd (fkt_start_seq_get_int): check return value from krb5_storage_from_fd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15632 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 05:34:29 +00:00
Love Hörnquist Åstrand
88be64c770 (pk_rd_pa_reply_dh): client do not contribute to the DH when the
server doesn't support the cached DH request.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15629 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 22:31:22 +00:00
Love Hörnquist Åstrand
cba53a17f2 (_krb5_pk_octetstring2key): fix arguments
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15628 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 22:29:52 +00:00
Love Hörnquist Åstrand
23dae960cd clean up pk-init DH support, not finished yet;
improve error reporting


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15623 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 13:39:51 +00:00
Love Hörnquist Åstrand
a70cf1c3a6 (_krb5_pk_octetstring2key): string2key function used in pk-init-25
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15622 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 13:34:47 +00:00
Love Hörnquist Åstrand
85b3e3de27 comment out paramenter name in typedef functions to avoid shadow warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15608 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 14:47:21 +00:00
Love Hörnquist Åstrand
3283e2cb08 make input data to krb5_encrypt{,_ivec} const
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15604 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 12:33:36 +00:00
Love Hörnquist Åstrand
5fdbeb4408 (TESTS): add test_crypto_wrapping
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15599 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 01:36:25 +00:00
Love Hörnquist Åstrand
1f25cc530f (wrapped_length): the underived encrypted types checksum are all
unkeyed (matches the code in encrypt_internal() and
encrypt_internal_special())


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15598 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 01:35:31 +00:00
Love Hörnquist Åstrand
ce99b902fb ETYPE_ARCFOUR_HMAC_MD5_56 isn't not supported
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15597 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 01:31:43 +00:00