Commit Graph

16260 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
b3f8381a4d (_kdc_check_flags): make it take hdb_entry_ex to avoid ?:'s at callers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16947 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:52:32 +00:00
Love Hörnquist Åstrand
3dfde09cb0 Avoid using free memory, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16946 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:39:54 +00:00
Love Hörnquist Åstrand
c857bdbb07 (expand_realm): avoid passing NULL to strlen, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16945 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:36:45 +00:00
Love Hörnquist Åstrand
1305bbe9d5 (krb5_rd_cred): avoid a memory leak on malloc failure, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16944 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:31:10 +00:00
Love Hörnquist Åstrand
d579ee0dc9 (_krb5_krbhost_info_move): replace a strcpy with a memcpy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16943 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:28:42 +00:00
Love Hörnquist Åstrand
4fd7055bdf (get_cell_and_realm): plug a memory leak, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16942 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:24:52 +00:00
Love Hörnquist Åstrand
4b2323bd43 (fkt_next_entry_int): remove a dereferencing NULL pointer, found by
IBM checker.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16941 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:22:33 +00:00
Love Hörnquist Åstrand
fd1ea1cc54 (init_creds_init_as_req): in AS-REQ the cname must always be given,
don't avoid that fact and remove a cname == NULL case. Plugs a memory
leak found by IBM checker.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16940 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:20:15 +00:00
Love Hörnquist Åstrand
0c29fd2ed1 (default_s2k_func): avoid exposing free-ed memory on error. Found by
IBM checker.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16939 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:10:35 +00:00
Love Hörnquist Åstrand
3abd33be22 (_krb5_get_init_creds_opt_copy): use calloc to avoid uninitialized
memory problem.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16938 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:08:30 +00:00
Love Hörnquist Åstrand
6d5788be42 (krb5_copy_data): avoid exposing free-ed memory on error. Found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:06:07 +00:00
Love Hörnquist Åstrand
a699632a9e (fcc_gen_new): fix a use after free, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16936 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 01:04:37 +00:00
Love Hörnquist Åstrand
4676501833 (krb5_config_vget_strings): IBM checker thought it found a memory
leak, it didn't, but there was another error in the code, lets fix
that instead.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16935 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:59:19 +00:00
Love Hörnquist Åstrand
657fc04cb0 (_krb5_expand_default_cc_name): plug memory leak. Found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16934 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:54:48 +00:00
Love Hörnquist Åstrand
dc2c39ab01 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16933 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:52:35 +00:00
Love Hörnquist Åstrand
5ac7ec3e3e (_krb5_expand_default_cc_name): avoid return pointer to freed memory
in the error case. Found by IBM checker.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16932 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:52:26 +00:00
Love Hörnquist Åstrand
4c3ff70933 (hdb_resolve): off by one, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16931 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:48:26 +00:00
Love Hörnquist Åstrand
fc5c7ee7fd x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16930 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:46:11 +00:00
Love Hörnquist Åstrand
3e9565a941 (hdb_generate_key_set): set ret_key_set before going into the error
clause and freeing key_set. Found by IBM checker.
Make sure ret == 0 after of parse error, we catch the "no entries
parsed" case later.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:45:48 +00:00
Love Hörnquist Åstrand
1708cc306c (krb5_addlog_dest): make string length match strings in strcasecmp.
Found by IBM checker.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16928 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:22:08 +00:00
Love Hörnquist Åstrand
842c64a858 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16927 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:11:31 +00:00
Love Hörnquist Åstrand
fcfcfa06cb (roken_gethostby): make addr_list one larger to avoid a off-by-one
error. Found by IBM checker.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16926 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:09:28 +00:00
Love Hörnquist Åstrand
a8ba307302 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16925 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:02:21 +00:00
Love Hörnquist Åstrand
e617b6330e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16924 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:02:09 +00:00
Love Hörnquist Åstrand
16a5f30931 Plug memory leak found by IBM checker (and try to please it).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 00:01:55 +00:00
Love Hörnquist Åstrand
2b6c24ce1a fill out what do
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16922 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 09:51:12 +00:00
Love Hörnquist Åstrand
b1d1aeacf6 add pkcs10-print
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16921 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 09:48:47 +00:00
Love Hörnquist Åstrand
71767d72c9 Include <pkcs10_asn1.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16920 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 09:48:16 +00:00
Love Hörnquist Åstrand
89e22ec715 Add pkcs10.asn1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 09:47:19 +00:00
Love Hörnquist Åstrand
345a5034c9 PKCS#10
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16918 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 09:46:57 +00:00
Love Hörnquist Åstrand
34cb08bfde (pkcs10_print): new function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16917 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 09:46:32 +00:00
Love Hörnquist Åstrand
ca5ed993fd x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16916 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 02:17:42 +00:00
Love Hörnquist Åstrand
85093fa177 test ocsp keyhash
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16915 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 02:17:26 +00:00
Love Hörnquist Åstrand
0d9209ecbd generate ocsp keyhash version too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 02:16:30 +00:00
Love Hörnquist Åstrand
feb71a9269 (load_ocsp): test that we got back a BasicReponse
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16913 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 02:15:02 +00:00
Love Hörnquist Åstrand
3bf4bb0e77 Add asn1_id_pkix_ocsp*.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16912 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 02:11:41 +00:00
Love Hörnquist Åstrand
7a53af1e6a Add HX509_QUERY_MATCH_KEY_HASH_SHA1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16911 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 02:10:24 +00:00
Love Hörnquist Åstrand
95d72c00e1 Support OCSPResponderID.byKey, indent.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16910 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 02:09:38 +00:00
Love Hörnquist Åstrand
71bbb60d93 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16909 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 01:39:21 +00:00
Love Hörnquist Åstrand
ca809dc7cf (hx509_ocsp_request): Add nonce to ocsp request.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16908 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 01:36:21 +00:00
Love Hörnquist Åstrand
046a67d1ea Add nonce to ocsp request.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16907 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 01:36:04 +00:00
Love Hörnquist Åstrand
bf9a313b9e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16906 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 01:08:52 +00:00
Love Hörnquist Åstrand
cdc5d08112 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16905 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 01:04:35 +00:00
Love Hörnquist Åstrand
89d2c7f34d rename missing-crl to missing-revoke
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16904 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 01:04:16 +00:00
Love Hörnquist Åstrand
002c19e076 revoked cert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16903 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 01:02:14 +00:00
Love Hörnquist Åstrand
396411d822 generate crl
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16902 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 01:01:35 +00:00
Love Hörnquist Åstrand
6d47c9c790 Added crl tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16901 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 01:00:22 +00:00
Love Hörnquist Åstrand
b4f2aeb697 make ca use openssl ca command so we can add ocsp tests, and regen certs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16900 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 00:41:04 +00:00
Love Hörnquist Åstrand
4bffd93906 Add revoked ocsp cert test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16899 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 00:37:54 +00:00
Love Hörnquist Åstrand
d7379e76d2 rename missing-crl to missing-revoke
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16898 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 00:30:45 +00:00