Commit Graph

3029 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
2894e05a71 Remove a double free introduced in 1.93
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17215 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-24 15:16:14 +00:00
Love Hörnquist Åstrand
b24395ffde (log_file): reset pointer to freed memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17214 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-24 15:09:27 +00:00
Love Hörnquist Åstrand
4ba57d49e9 (get_cell_and_realm): reset d->cell to make sure its not refereced
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17213 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-24 15:06:57 +00:00
Love Hörnquist Åstrand
61b5a1a5df indent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17206 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-24 10:16:36 +00:00
Love Hörnquist Åstrand
4049e76902 make compile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-24 08:49:08 +00:00
Love Hörnquist Åstrand
2157835b75 Pass down realm to pk_verify_host so the function can verify the
certificate is from the right realm.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17196 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-24 08:23:47 +00:00
Love Hörnquist Åstrand
a49278a8b4 Pass down realm to _krb5_pk_rd_pa_reply
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17195 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-24 08:21:52 +00:00
Love Hörnquist Åstrand
4828d9e4e4 (pk_verify_host): Add begining of finding subjectAltName_otherName
pk-init-san and verifing it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17192 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-23 21:30:17 +00:00
Love Hörnquist Åstrand
0a1e672d85 reindent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17190 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-23 21:14:07 +00:00
Love Hörnquist Åstrand
9578393792 Add pkinit_require_eku and pkinit_require_krbtgt_otherName
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17177 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-23 20:07:51 +00:00
Love Hörnquist Åstrand
313fa917d5 Adapt to change in hx509_cms_create_signed_1.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17171 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 12:10:16 +00:00
Love Hörnquist Åstrand
e43d859600 Handle diffrences between libhcrypto and libcrypto.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 17:08:46 +00:00
Love Hörnquist Åstrand
c3e1233f63 (krb5_rd_safe): fix argument to krb5_data_zero, handle message size = 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17057 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-12 16:20:03 +00:00
Love Hörnquist Åstrand
766c132ea1 Fix argument to krb5_data_zero.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17056 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-12 16:18:10 +00:00
Love Hörnquist Åstrand
19aee3ece1 (_krb5_pk_load_id): Added certificate revoke information, ie CRL's
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17053 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-12 13:19:13 +00:00
Love Hörnquist Åstrand
7452077a9f (krb5_rc_resolve_full): make compile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17047 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 17:13:49 +00:00
Love Hörnquist Åstrand
c56cfcb861 (krb4_kt_start_seq_get_int): make compile again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17046 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 17:10:53 +00:00
Love Hörnquist Åstrand
2eeae67af7 (make_path): make sure we return allocated memory
Coverity, NetBSD CID#1892


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17043 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 10:26:35 +00:00
Love Hörnquist Åstrand
69dda05a9c (krb5_verify_authenticator_checksum): on protocol failure, avoid leaking memory
Coverity, NetBSD CID#1900


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17042 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 10:14:44 +00:00
Love Hörnquist Åstrand
c41e1b2980 (krb5_parse_name): remember to free realm in case of error
Coverity, NetBSD CID#1883


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17041 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 10:10:01 +00:00
Love Hörnquist Åstrand
55178a0d79 (krb5_425_conv_principal_ext2): remove memory leak in case of weird
formated dns replys.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17040 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 10:02:48 +00:00
Love Hörnquist Åstrand
c5dd980dba (krb5_rc_resolve_full): don't return pointer to a allocated
krb5_rcache in case of error.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17039 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 09:48:42 +00:00
Love Hörnquist Åstrand
9be36e4522 (krb5_addlog_dest): free fn in case of error
Coverity, NetBSD CID#1882


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17038 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 09:41:26 +00:00
Love Hörnquist Åstrand
7b91fa46c7 Fix deref before NULL check, fix error handling.
Coverity, NetBSD CID#2369


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17037 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 09:33:15 +00:00
Love Hörnquist Åstrand
494ca3d6a8 (krb5_get_forwarded_creds): in_creds->client should always be set, assume so.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17036 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 09:28:15 +00:00
Love Hörnquist Åstrand
db048d96d6 (any_next_entry): restructure to make it easier to read
Fixes Coverity, NetBSD CID#625


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17035 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 09:20:13 +00:00
Love Hörnquist Åstrand
2a7b485275 (krb5_string_to_key_derived): deref after NULL check.
Coverity NetBSD CID#2367


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17034 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 08:58:53 +00:00
Love Hörnquist Åstrand
6b9e922298 (krb5_build_authenticator): use calloc. removed check that was never
really used. Coverity NetBSD CID#2370


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17033 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 08:53:21 +00:00
Love Hörnquist Åstrand
59aa089d03 (krb5_verify_ap_req2): make sure `ticket´ points to NULL in case of
error, add error handling, use calloc.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17025 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 17:56:10 +00:00
Love Hörnquist Åstrand
4466bd867f (krb5_ret_principal): fix memory leak
Coverity, NetBSD CID#1695


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17018 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 22:23:20 +00:00
Love Hörnquist Åstrand
5a761c7f96 (krb5_kt_ret_principal): plug a memory leak
Coverity NetBSD CID#1890


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17013 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 21:57:31 +00:00
Love Hörnquist Åstrand
d9b82bea73 fix spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16958 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 10:32:20 +00:00
Love Hörnquist Åstrand
c1ce715df2 (send_and_recv_http): don't expose freed pointer, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16957 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 02:32:03 +00:00
Love Hörnquist Åstrand
529acecb2b (krb5_rd_cred): don't expose freed pointer, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16956 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 02:27:33 +00:00
Love Hörnquist Åstrand
03f05a7a6e (krb5_make_addrport): clear return value on error, found by IBM checker.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16955 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 02:17:31 +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
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
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