Commit Graph

8632 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
7faccdb5b9 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17049 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 17:33:37 +00:00
Love Hörnquist Åstrand
5c4f7cec25 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17048 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 17:15:10 +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
fc3afb44e0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17045 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 16:38:43 +00:00
Love Hörnquist Åstrand
5c607b8633 Try harder to get the pioctl to work via the /proc or /dev interface,
OpenAFS choose to reuse the same ioctl number, while Arla didn't.
Also, try new ioctl before the the old syscalls.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17044 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 16:38:22 +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
e45fef35e1 (afslog_uid_int): use the simpler krb5_principal_get_realm function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17032 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 08:45:04 +00:00
Love Hörnquist Åstrand
ed777eb383 (kadm5_log_delete): add error handling Coverity, NetBSD CID#626
(kadm5_log_modify): add error handling Coverity, NetBSD CID#627


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17031 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 08:25:13 +00:00
Love Hörnquist Åstrand
ce43c5de5a (kadm5_log_rename): handle errors better
Fixes Coverity, NetBSD CID#628


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17030 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 08:16:41 +00:00
Love Hörnquist Åstrand
5d676c4509 (_kadm5_c_get_cred_cache): handle ccache case better in case no client
name was passed in. Coverity, NetBSD CID#919


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17029 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 07:55:22 +00:00
Love Hörnquist Åstrand
86ee0aa773 (_kadm5_c_get_cred_cache): Free client principal in case of error.
Coverity NetBSD CID#1908


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17028 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 07:50:22 +00:00
Love Hörnquist Åstrand
30627ab04b Spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17027 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 18:45:18 +00:00
Love Hörnquist Åstrand
31b3e7004d Check that cred != GSS_C_NO_CREDENTIAL, this is a standard conformance
failure, but much better then a crash.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 18:38:13 +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
e01da67d58 (RC2_set_key): abort on erroneous input (len <= 0) size that will case
out out bound indexing, and its invalid input.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17022 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 17:03:21 +00:00
Love Hörnquist Åstrand
cb07dc716d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 16:59:17 +00:00
Love Hörnquist Åstrand
517a78550f Make compile again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17020 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 16:58:57 +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
8a99a492b5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17017 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 22:16:15 +00:00
Love Hörnquist Åstrand
a8a053df5c (hashtabnew): check for NULL before setting structure.
Coverity, NetBSD CID#4


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17016 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 22:16:00 +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
2cd3764e7b Split libhx509_la_SOURCES into build file and distributed files so we
can avoid building prototypes for build-files.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17000 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-04 11:27:21 +00:00
Love Hörnquist Åstrand
eec31b6bad x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16999 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 20:51:37 +00:00
Love Hörnquist Åstrand
569ec43582 split certificate request into pkcs10 and CRMF
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16998 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 20:49:27 +00:00
Love Hörnquist Åstrand
c532decb46 Add nonce flag to ocsp-fetch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16997 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 18:44:35 +00:00
Love Hörnquist Åstrand
2eb3049463 control sending nonce
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16996 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 18:44:07 +00:00
Love Hörnquist Åstrand
53da7dba23 Add printing ocsp replys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16995 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 18:32:57 +00:00
Love Hörnquist Åstrand
e01c6dbc48 (hx509_ocsp_request): comment on why we need to match the issuer too.
(hx509_revoke_ocsp_print): more verbose printing.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16994 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 18:29:37 +00:00
Love Hörnquist Åstrand
b3a92619c0 (request_create): store the request in a file, no in bitbucket.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16993 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 17:10:30 +00:00
Love Hörnquist Åstrand
0fcc9f43ac (verify_ocsp): spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16992 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 15:30:46 +00:00
Love Hörnquist Åstrand
1e0aaa115c (hx509_ci_print_names): make it print issuer too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16991 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 15:25:28 +00:00
Love Hörnquist Åstrand
86f05f039c expose print_cert_subject internally
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16990 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 15:24:58 +00:00
Love Hörnquist Åstrand
ae6e238600 Add ocsp_print.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16989 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 15:23:08 +00:00
Love Hörnquist Åstrand
3973182c99 New command "ocsp-print".
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16988 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 15:22:44 +00:00
Love Hörnquist Åstrand
64e02c3d8d Include <hex.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16987 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 15:22:17 +00:00
Love Hörnquist Åstrand
76a4c45ce5 (verify_ocsp): require issuer to match too.
(free_ocsp): new function
(hx509_revoke_ocsp_print): new function, print ocsp reply


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16986 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 15:21:24 +00:00
Love Hörnquist Åstrand
890533d4f6 build CRMF files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16985 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 12:18:46 +00:00
Love Hörnquist Åstrand
253d40df60 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16984 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 12:17:46 +00:00
Love Hörnquist Åstrand
339a7ab662 needed for cert request test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16983 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 12:17:20 +00:00