Commit Graph

3688 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
7f1b54370c (nametypes) += static const.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21285 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-25 12:30:55 +00:00
Love Hörnquist Åstrand
6ef8b2861b Adapt to hx509_verify_hostname change.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21270 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-24 19:26:50 +00:00
Love Hörnquist Åstrand
0a31115937 Document krb5_parse_nametype.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21255 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-21 04:36:31 +00:00
Love Hörnquist Åstrand
bcbae1850b (krb5_parse_nametype): parse nametype and return their integer values.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-21 04:30:06 +00:00
Love Hörnquist Åstrand
d5bb7a7c56 (krb5_get_creds): if KRB5_GC_CONSTRAINED_DELEGATION is set, set both
request_anonymous and constrained_delegation.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21253 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-21 04:24:24 +00:00
Love Hörnquist Åstrand
42bf4117ad Add KRB5_GC_CONSTRAINED_DELEGATION.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21252 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-21 04:18:28 +00:00
Love Hörnquist Åstrand
f2f87ddcd9 Add KRB5_PRINCIPAL_UNPARSE_DISPLAY.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21232 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 10:23:26 +00:00
Love Hörnquist Åstrand
cc6c68ffac Windows likes little endian, so lets use that.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21174 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-19 10:10:58 +00:00
Love Hörnquist Åstrand
d68b36bb90 make compile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21149 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:50:22 +00:00
Love Hörnquist Åstrand
c614532c87 (verify_checksum): memset cksum to avoid using pointer from stack.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21135 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:06:08 +00:00
Love Hörnquist Åstrand
a073113c08 Don't expose free pointer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21134 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:02:23 +00:00
Love Hörnquist Åstrand
6a7734667a (_krb5_pk_load_id): fail directoy for first calloc.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21133 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:52:29 +00:00
Love Hörnquist Åstrand
14537be0f4 (get_reply_key*): don't expose freed memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21132 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:49:42 +00:00
Love Hörnquist Åstrand
8ab80e3238 Host is static memory, don't free.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21131 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:48:09 +00:00
Love Hörnquist Åstrand
5bb7b3bc79 (decrypt_internal_derived): make sure length is longer then confounder
+ checksum.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21130 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:45:21 +00:00
Love Hörnquist Åstrand
b1f3eb8118 (pk_rd_pa_reply_enckey): simplify handling of content data (and avoid
leaking memory).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 10:49:08 +00:00
Love Hörnquist Åstrand
347f286c8b Commit workaround for LH (disabled).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21091 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-14 01:08:37 +00:00
Love Hörnquist Åstrand
a48a647b4e Fix testcase for unparse_display.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21090 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 23:47:28 +00:00
Love Hörnquist Åstrand
d8e764f7c0 Rename UNPARSE_NO_QUOTE to UNPARSE_DISPLAY.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21076 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:39:15 +00:00
Love Hörnquist Åstrand
6465deda9c Rename UNPARSE_NO_QUOTE to UNPARSE_DISPLAY.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21075 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:38:39 +00:00
Love Hörnquist Åstrand
fd2f735edd Make no-quote mean replace strange chars with space.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21074 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:35:10 +00:00
Love Hörnquist Åstrand
6a38e8d297 Support KRB5_PRINCIPAL_UNPARSE_NO_QUOTE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21073 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:23:41 +00:00
Love Hörnquist Åstrand
757bafb34b Add KRB5_PRINCIPAL_UNPARSE_NO_QUOTE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21072 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:21:10 +00:00
Love Hörnquist Åstrand
09a90d78cc Test quoteing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:20:01 +00:00
Love Hörnquist Åstrand
582a9d3c06 update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21064 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 18:00:11 +00:00
Love Hörnquist Åstrand
18278b0bef use krb5_sendto_context to talk to the KDC.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21063 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 17:59:36 +00:00
Love Hörnquist Åstrand
055dd97483 (_krb5_kdc_retry): check if the whole process needs to restart or just
skip this KDC.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21062 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 17:58:57 +00:00
Love Hörnquist Åstrand
2511fccfe3 Use krb5_sendto_context to talk to KDC.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21061 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 17:56:30 +00:00
Love Hörnquist Åstrand
3fd75229b3 Add sendto hooks and opaque structure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21060 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 17:54:00 +00:00
Love Hörnquist Åstrand
220a01c50b Update prototype.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21059 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 17:52:46 +00:00
Love Hörnquist Åstrand
e86b58e01c Add hooks for processing the reply from the server.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21058 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 17:49:37 +00:00
Love Hörnquist Åstrand
88254f2835 (krb5_rd_error): make indata const.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21057 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 17:22:31 +00:00
Love Hörnquist Åstrand
6e9d640726 Some new error codes from RFC 4120.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21050 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 02:00:40 +00:00
Love Hörnquist Åstrand
cc4333b758 remove cvs ignore files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 03:09:59 +00:00
Love Hörnquist Åstrand
9df9f6a9da revert 21003
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21004 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:53:10 +00:00
Love Hörnquist Åstrand
12df8538af use "roken.h" consitantly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21003 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:42:05 +00:00
Love Hörnquist Åstrand
bf02504f31 Require the raw key have the correct size and do away with the
minsize.  Minsize was a thing that originated from RC2, but since RC2
is done in the x509/cms subsystem now there is no need to keep that
around.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20981 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-07 20:05:50 +00:00
Love Hörnquist Åstrand
e9ae5054cd plug memory leaks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20846 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 14:33:11 +00:00
Love Hörnquist Åstrand
6559e67d3c plug memory leaks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20845 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 14:31:16 +00:00
Love Hörnquist Åstrand
e73b363f90 plug memory leaks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20844 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 14:31:01 +00:00
Love Hörnquist Åstrand
2cd729eb0f plug memory leak.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20843 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 14:23:20 +00:00
Love Hörnquist Åstrand
be1bf762ec plug memory leaks.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20842 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-03 14:21:32 +00:00
Love Hörnquist Åstrand
edf7a96c36 add error 68, WRONG_REALM
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20760 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-01 03:24:49 +00:00
Love Hörnquist Åstrand
9fe3a53f6d Allow turning off sending trustedCertifiers in the request.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20752 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-31 20:58:07 +00:00
Love Hörnquist Åstrand
20686d11f3 Add missing REVOCATION_STATUS_UNAVAILABLE and fix error message for CLIENT_NAME_MISMATCH.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20741 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-31 17:13:58 +00:00
Love Hörnquist Åstrand
fa4a82327c Spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20695 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-30 14:09:09 +00:00
Love Hörnquist Åstrand
07aeb14a0c document krb5_crypto_overhead
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20685 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-16 18:49:27 +00:00
Love Hörnquist Åstrand
5e5c20fe90 (krb5_crypto_overhead): return static overhead of encryption.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20683 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-16 18:28:27 +00:00
Love Hörnquist Åstrand
03f9908752 (krb5_get_init_creds_opt_get_error): correct the order of the
arguments.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20541 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-23 12:19:14 +00:00
Love Hörnquist Åstrand
9ff76dfc2e (krb5_store_creds_tag): use session.keytype to determine if to send
the session-key, for the second place in the function.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20529 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-22 14:28:19 +00:00