Commit Graph

2936 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
5bf49e3df3 Don't install krb5.moduli for now.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16156 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-09 09:33:13 +00:00
Love Hörnquist Åstrand
66baee8800 (_krb5_krbhost_info_move): new function
(_krb5_free_krbhst_info): expose to internal use


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16155 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-08 15:40:50 +00:00
Love Hörnquist Åstrand
740f6b5deb add Q for group 14
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16154 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-08 15:39:42 +00:00
Love Hörnquist Åstrand
ffa6f55bd4 Prepare to pass down a krb5_krbhst_info into the pre-auth mechs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16152 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-08 15:34:53 +00:00
Love Hörnquist Åstrand
6b484c39a5 Inline short functions, share more code, rename COMPAT_27 to
COMPAT_IETF, pass down a krb5_krbhst_info for verification of KDC
info, and general cleaning up.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16151 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-08 15:32:14 +00:00
Love Hörnquist Åstrand
c3c4927a70 Install krb5.moduli in sysconfdir.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16147 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 12:20:11 +00:00
Love Hörnquist Åstrand
92c70eb57b Describe format.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16146 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 12:19:10 +00:00
Love Hörnquist Åstrand
d392e84793 moduli file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16145 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 12:17:49 +00:00
Love Hörnquist Åstrand
3c93988850 rename moduli file to SYSCONFDIR "/krb5.moduli"
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16144 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 12:08:02 +00:00
Love Hörnquist Åstrand
2ba37a88dd Add forward declaration for krb5_dh_moduli.
Add define for MODULI_FILE.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16143 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 11:44:49 +00:00
Love Hörnquist Åstrand
1ef128fbff Removing PK-INIT-19 support.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16141 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 11:00:05 +00:00
Love Hörnquist Åstrand
0915d6890b (_krb5_dh_group_ok): return DH group name on success.
(krb5_get_init_creds_opt_set_pkinit): use moduli file if it exists


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16140 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 10:40:52 +00:00
Love Hörnquist Åstrand
ff2f0da2df (_krb5_dh_group_ok): if q is zero, ignore it.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16138 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 08:59:27 +00:00
Love Hörnquist Åstrand
a705696f64 Match error code with pk-init-27.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16132 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 08:53:50 +00:00
Love Hörnquist Åstrand
29bab5c5f9 Update error codes. Add name to group. Change return value of
_krb5_dh_group_ok.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16131 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 08:53:15 +00:00
Love Hörnquist Åstrand
178e4c0087 Add support for reading a moduli-file for DH parameters.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16129 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 04:37:28 +00:00
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