Commit Graph

11050 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
e593553c68 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21143 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:30:56 +00:00
Love Hörnquist Åstrand
cf84374515 Pass in pointer to strlen().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21142 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:30:41 +00:00
Love Hörnquist Åstrand
8e9ebe14de Fail if not finding iv.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21141 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:30:11 +00:00
Love Hörnquist Åstrand
7c5b097a53 Avoid useing freed memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21140 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:24:19 +00:00
Love Hörnquist Åstrand
000a661cad Free memory in failure case.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21139 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:23:26 +00:00
Love Hörnquist Åstrand
81de1fa484 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21138 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:18:58 +00:00
Love Hörnquist Åstrand
e32c43989d Free memory in failure case.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21137 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:18:45 +00:00
Love Hörnquist Åstrand
e051a8a3c4 Don't expose freed pointer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21136 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 21:13:27 +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
3a5f005244 (_gsskrb5_pseudo_random): add missing break.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21129 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:28:44 +00:00
Love Hörnquist Åstrand
c0661b67f2 Set *minor_status unconditionallty, its done later anyway.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:26:50 +00:00
Love Hörnquist Åstrand
ab8094ae4c Init get_mic to 0.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:23:14 +00:00
Love Hörnquist Åstrand
fd3ca527e1 Free memory in failure case, found by beam.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:19:59 +00:00
Love Hörnquist Åstrand
23e434119d Handle mech_type being NULL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21125 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:11:07 +00:00
Love Hörnquist Åstrand
cd23060c10 Handle cred_name being NULL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21124 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:08:24 +00:00
Love Hörnquist Åstrand
0dea8f59be Free memory in error case, found by beam.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21123 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:05:26 +00:00
Love Hörnquist Åstrand
d7cd92f569 Init data to something.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21120 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 19:48:02 +00:00
Love Hörnquist Åstrand
204c44be9e (sl_make_argv): use memmove since we are dealing with overlapping strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21119 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 19:45:53 +00:00
Love Hörnquist Åstrand
6a64e4d44c provide better error string for the common failure case.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 12:59:32 +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
3b9777f5ac x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 05:20:58 +00:00
Love Hörnquist Åstrand
5e25789281 Use /etc/shadow, not /dev/shadow, pointed out by Andrew Bartlett
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21104 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 05:19:45 +00:00
Love Hörnquist Åstrand
ed07eec3c8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21103 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 03:56:14 +00:00
Love Hörnquist Åstrand
08fa7ba08b add rand-timer.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21102 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 03:55:28 +00:00
Love Hörnquist Åstrand
2561a961e3 Provide timer prototypes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21101 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 03:53:46 +00:00
Love Hörnquist Åstrand
58055ddfc9 Fall back to gattering data from timer and secret files, this is
really the last resort.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21100 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 03:51:21 +00:00
Love Hörnquist Åstrand
a6fb942d8e Pick up timing diffrences in the timeing info from realtime timer,
only in use as a last resort.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21099 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 03:48:47 +00:00
Love Hörnquist Åstrand
a00947d55f Add hc_RAND_timer_method.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21098 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 03:45:44 +00:00
Love Hörnquist Åstrand
fae08f960f Introduce subtypes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-16 07:00:49 +00:00
Love Hörnquist Åstrand
a4e2b83667 Drop ad-initial-verified-cas.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-15 19:53:52 +00:00
Love Hörnquist Åstrand
65071433b0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21093 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-15 19:48:06 +00:00
Love Hörnquist Åstrand
ad678a46ef Add KRB5-AUTHDATA-INITIAL-VERIFIED-CAS.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21092 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-15 19:47:46 +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
120472ae06 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21089 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 19:30:27 +00:00
Love Hörnquist Åstrand
272ac7eac4 Make the pkinit nonce signed (like the kerberos nonce).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21088 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 19:29:49 +00:00
Love Hörnquist Åstrand
8399f4f198 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21086 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 06:40:18 +00:00
Love Hörnquist Åstrand
f622a16e97 Add hx509_cert_init_data and use everywhere
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21085 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 06:39:53 +00:00
Love Hörnquist Åstrand
8554301502 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21084 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 02:12:48 +00:00
Love Hörnquist Åstrand
98b5a611bd Now that KEYCHAIN:system-anchors is fast again, use that.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21083 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 02:11:19 +00:00
Love Hörnquist Åstrand
7a61e0a75f Implement trust anchor support with SecTrustCopyAnchorCertificates.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21082 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 02:09:26 +00:00
Love Hörnquist Åstrand
08ae4bf7bd x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21081 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 01:06:49 +00:00
Love Hörnquist Åstrand
cadd30c594 Set ref to 1 for the new object.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21080 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 01:06:25 +00:00
Love Hörnquist Åstrand
811bb58fb6 Use ctx->gssflags for flags.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21079 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 00:25:25 +00:00
Love Hörnquist Åstrand
4ec842b540 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21078 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-12 22:46:32 +00:00