Commit Graph

3245 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
487bcca4e2 Use strcspn to remove \n from fgets result. Prompted by change by Ray
Lai of OpenBSD via Björn Sandell.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19213 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 23:36:36 +00:00
Love Hörnquist Åstrand
31c6637aca (plugin_get_hosts): be more paranoid and pass in a NULLed plugin list
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19198 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-30 17:23:08 +00:00
Love Hörnquist Åstrand
64c7c462af add more pkinit options.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19194 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-29 19:19:45 +00:00
Love Hörnquist Åstrand
247bb1c42b Store what PK-INIT type we used to know reply to expect, this avoids
overwriting the real PK-INIT error from just a failed requeat with a
Windows PK-INIT error (that always failes).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19191 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-29 11:47:29 +00:00
Love Hörnquist Åstrand
997dc9aebb Allow selection of minium bits from the DH parameters.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19167 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 04:00:35 +00:00
Love Hörnquist Åstrand
2f4615fcd2 (build_auth_pack): set supportedCMSTypes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19158 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 13:46:04 +00:00
Love Hörnquist Åstrand
0e4b620131 Pass down hx509_peer_info.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19132 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-26 18:09:59 +00:00
Love Hörnquist Åstrand
ddfe47e5e1 Update hx509_cms_create_signed_1.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19120 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-26 15:50:48 +00:00
Love Hörnquist Åstrand
629ef1ca09 Set the large_msg_size to 1400, lets not fragment packets and avoid
stupid linklayers that doesn't allow fragmented packets (unix dgram
sockets on Mac OS X)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19107 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-24 14:24:33 +00:00
Love Hörnquist Åstrand
03d0a158b8 (_krb5_pk_create_sign): stuff down the users certs in the pool to make
sure a path is returned, without this proxy certificates wont work.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-23 18:13:47 +00:00
Love Hörnquist Åstrand
976c93b3e6 (krb5_get_init_creds_opt_free): allow free on NULL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19092 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-23 16:27:36 +00:00
Love Hörnquist Åstrand
473532da2a update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19088 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-21 08:08:46 +00:00
Love Hörnquist Åstrand
9db7608772 (krb5_get_warn_dest): return warn_dest from krb5_context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19086 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-21 08:06:40 +00:00
Love Hörnquist Åstrand
7f09ad0520 document krb5_[gs]et_warn_dest
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19085 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-21 07:55:20 +00:00
Love Hörnquist Åstrand
213255c32a Drop KRB5_KU_TGS_IMPERSONATE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19082 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-21 05:15:36 +00:00
Love Hörnquist Åstrand
b9624a871d Use KRB5_KU_OTHER_CKSUM for the impersonate checksum.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19081 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-21 05:14:43 +00:00
Love Hörnquist Åstrand
7624883fb4 Make krb5_get_init_creds_opt_free take a context argument.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19080 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-20 18:41:57 +00:00
Love Hörnquist Åstrand
ece5f9603e Make krb5_get_init_creds_opt_free take a context argument.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-20 18:12:41 +00:00
Love Hörnquist Åstrand
5b7701514e Make all pkinit options prefixed with pkinit_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19069 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-17 22:27:01 +00:00
Love Hörnquist Åstrand
61623b636c Make app pkinit options prefixed with pkinit_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19068 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-17 22:20:25 +00:00
Love Hörnquist Åstrand
e299db5039 (krb5_c_keylengths): make compile again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19067 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-17 22:17:46 +00:00
Love Hörnquist Åstrand
20a7bd7a29 Update krb5_c_keylengths
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19066 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-17 22:09:25 +00:00
Love Hörnquist Åstrand
0afc3bb28a (krb5_c_keylengths): rename.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19065 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-17 22:06:07 +00:00
Love Hörnquist Åstrand
3719ad0089 (krb5_c_keylength): mit changed the api, deal.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19064 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-17 22:04:54 +00:00
Love Hörnquist Åstrand
4e200bc2d5 Add krb5_enctype_keybits.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19063 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-17 21:58:47 +00:00
Love Hörnquist Åstrand
073e1a2052 (fill_zeros): stop using MIN.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19029 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-13 17:45:27 +00:00
Love Hörnquist Åstrand
cfb4caacee Use NOTHERE.H5L.SE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19013 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-13 05:28:43 +00:00
Love Hörnquist Åstrand
e53d2e7d9a Use 127.0.0.2 to make us slightly diffrent from the rest of the world.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19012 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-13 05:11:39 +00:00
Love Hörnquist Åstrand
feca1fb894 Fill in hints for picky getaddrinfo()s.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19010 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-13 05:06:08 +00:00
Love Hörnquist Åstrand
8ba76d2ba8 Set sin_len if it exists.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19009 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-13 05:01:03 +00:00
Love Hörnquist Åstrand
35ac6d4651 Use plugin for the other realm locate types too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19008 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-13 04:46:37 +00:00
Love Hörnquist Åstrand
1bbf3e6917 update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19006 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 21:42:18 +00:00
Love Hörnquist Åstrand
f6b6bb58e3 Add plugin types.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19005 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 21:40:19 +00:00
Love Hörnquist Åstrand
ec21016cde Read config file and allow multi directories.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19004 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 21:39:43 +00:00
Love Hörnquist Åstrand
c16f8fcd4e Add plugin api.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19001 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 20:06:52 +00:00
Love Hörnquist Åstrand
51bdcbd088 Use the resolve plugin interface.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19000 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 20:05:20 +00:00
Love Hörnquist Åstrand
b28a485ef3 Test resolve plugin
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18999 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 19:10:11 +00:00
Love Hörnquist Åstrand
79e58fd503 Add plugin interface for resolving that is API compatible with MITs version.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18998 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 19:00:03 +00:00
Love Hörnquist Åstrand
d4c6410532 Add first version of the plugin interface.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18997 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 18:58:41 +00:00
Love Hörnquist Åstrand
6d50466262 Spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18996 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 17:30:48 +00:00
Love Hörnquist Åstrand
7ee6102353 Build PAC code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18994 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 08:41:00 +00:00
Love Hörnquist Åstrand
cffffb6192 Test signing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18993 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 08:38:10 +00:00
Love Hörnquist Åstrand
bfb5987861 Add code to sign PACs, only arcfour for now.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18992 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 08:37:27 +00:00
Love Hörnquist Åstrand
bb7a02e9b0 Add struct krb5_pac.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18991 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-12 08:33:07 +00:00
Love Hörnquist Åstrand
7eaec81548 PAC testing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18989 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 07:47:04 +00:00
Love Hörnquist Åstrand
33b12f5ffd Sprinkle error strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18988 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 07:36:48 +00:00
Love Hörnquist Åstrand
ce3af21b1e Verify LOGON_NAME.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18987 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-10 07:22:55 +00:00
Love Hörnquist Åstrand
1e488b93d1 Document krb5_c_keylength.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18967 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-09 21:27:59 +00:00
Love Hörnquist Åstrand
6326a9272e Add krb5_c_keylength.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18966 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-09 21:24:16 +00:00
Love Hörnquist Åstrand
a84d691b26 Almost enough code to do PAC parsing and verification, missing in the
unix2NTTIME and ucs2 corner. The later will be adressed by finally
adding libwind.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18965 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-09 02:55:17 +00:00