Commit Graph

15403 Commits

Author SHA1 Message Date
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
b1fffa7079 Save DH group name and print it on success.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16139 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 10:40:00 +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
776512783d Check dh group parameters from client.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16137 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 08:57:51 +00:00
Love Hörnquist Åstrand
0fa6eefd9f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16136 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 08:56:15 +00:00
Love Hörnquist Åstrand
fcc233ae04 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16135 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 08:55:50 +00:00
Love Hörnquist Åstrand
e3eff997f9 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16134 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 08:55:28 +00:00
Love Hörnquist Åstrand
b5c8c913bc x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16133 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 08:54:59 +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
71b2f65b0d Provide forward declartion of krb5_dh_moduli.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16130 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 06:27:14 +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
7f2116e65f Add tests for parse and print functions for heim_integer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 03:49:57 +00:00
Love Hörnquist Åstrand
7c785284bd Add parse and print functions for heim_integer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 03:49:16 +00:00
Love Hörnquist Åstrand
5b3597703d Document --list-caches
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-06 19:59:16 +00:00
Love Hörnquist Åstrand
737b532df0 Change short flag of --list-caches to -l (-v is already used).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16125 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-06 19:56:38 +00:00
Love Hörnquist Åstrand
ce87d34e7c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16124 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-04 09:02:34 +00:00
Love Hörnquist Åstrand
1e22f60639 Validate that issuerAltName and subjectAltName isn't empty.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16123 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-04 08:59:54 +00:00
Love Hörnquist Åstrand
af4ec70bf2 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16122 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-03 14:25:17 +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
fcad6caa4c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16119 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-02 14:38:40 +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
addf150924 Mac OS X 10.4 needs a runtime check if we are going to use the
syscall, there is no cpp define to use to check the version.  Every
after 10.0 (darwin 8.0) uses the /dev/ version of the pioctl.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16117 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-02 03:17:06 +00:00
Love Hörnquist Åstrand
9cfdb7f017 Maybe include <sys/sysctl.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16116 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-02 03:14:47 +00:00
Love Hörnquist Åstrand
2a6e781bff x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16115 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-01 03:41:33 +00:00
Love Hörnquist Åstrand
cd2ce0c2a6 Add option --list-caches that lists the avaible caches and their status.
$ klist --list-caches
  Principal        Cache name               Status
lha@E.KTH.SE     2                        Valid
lha@SU.SE        1                        Expired
lha/root@SU.SE   0                        Expired
lha@N.L.NXS.SE   Initial default ccache   Expired


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16114 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-01 03:39:59 +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
a1ed69cd38 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-01 02:56:32 +00:00
Love Hörnquist Åstrand
c9f13ad9b3 Support the new MacOS X 10.4 ioctl interface that is a device
node. Patched from Tomas Olson <tol@it.su.se>.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-01 02:55:55 +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
f8dce1d55e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16104 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-28 03:07:19 +00:00
Love Hörnquist Åstrand
aa37b056a2 Check for <stdint.h> and uintptr_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16103 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-28 03:06:36 +00:00
Love Hörnquist Åstrand
38c5dbe857 Move rk_UNCONST to roken.h.in since it might use uintptr_t depending
on avaibility.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16102 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-28 03:05:58 +00:00
Love Hörnquist Åstrand
2440d579fb Include <stdint.h> if it exists.
If avaiable, use uintptr_t to define rk_UNCONST.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16101 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-28 03:04:54 +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
388b0ffca4 More verbose PK-INIT logging.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16099 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-25 15:23:21 +00:00
Love Hörnquist Åstrand
61b1ea80de The public DH key is encoded as an INTEGER in subjectPublicKey.
Don't verify OID's for now.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16098 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-25 15:18:14 +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
3f70dd507f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16095 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-23 05:30:50 +00:00
Love Hörnquist Åstrand
a6a2a09c88 (gen_files_rfc2459) += asn1_DHPublicKey.x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-23 05:29:29 +00:00
Love Hörnquist Åstrand
3b929ad31f Add DHPublicKey, and INTEGER to for storing the DH public key in the
SubjectPublicKeyInfo.subjectPublicKey BIT STRING.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16093 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-23 05:27:57 +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