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
135a36efb2
(doit): when done, close all fd in the sockets array and free it.
...
Coverity NetBSD CID#1916
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17024 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 17:45:44 +00:00
Love Hörnquist Åstrand
1082824558
(v4_prop_dump): close FILE handle f when done.
...
Fixes Coverity NetBSD CID#1956
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17023 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 17:41:47 +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
52d5fdf939
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17019 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 22:23:38 +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
8f297fdb5c
(_kdc_do_524): Handle memory allocation failure
...
Coverity, NetBSD CID#2752
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17015 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 22:12:28 +00:00
Love Hörnquist Åstrand
2a6831b56c
(kadmind_dispatch): case kadm_rename, free princ2 on acl check failure.
...
Coverity, NetBSD CID#1911
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17014 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 22:00:57 +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
5800a9f897
(main): make sure type doesn't need to be set
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17012 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 21:41:14 +00:00
Love Hörnquist Åstrand
e3a5114857
(mit_prop_dump): close fd when done processing
...
Coverity NetBSD CID#1955
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17011 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 18:53:45 +00:00
Love Hörnquist Åstrand
39fbe46845
(tokey): catch warnings, free memory after use.
...
Based on Coverity NetBSD CID#1894
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17010 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 18:50:40 +00:00
Love Hörnquist Åstrand
dca15243a2
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17009 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 14:01:16 +00:00
Love Hörnquist Åstrand
54f35ca241
(main): remove dead code.
...
Coverity NetBSD CID#633
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17008 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 14:00:57 +00:00
Love Hörnquist Åstrand
c7c0927da2
(rename_entry): free the right entry in the error case,
...
From Coverity NetBSD CID#1888
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17007 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 13:11:24 +00:00
Love Hörnquist Åstrand
2484ddfa84
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17006 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 13:10:00 +00:00
Love Hörnquist Åstrand
1cb80fec51
(generate_password): memory leak in error condition case
...
From Coverity NetBSD CID#1887
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17005 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 13:09:17 +00:00
Love Hörnquist Åstrand
6b76beb9d8
(kt_remove): Free memory in error handling cases.
...
From Coverity NetBSD CID#1886.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17004 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 13:06:37 +00:00
Johan Danielsson
125128ed5c
use exactly six X:es with mkstemp
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17003 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-07 09:55:12 +00:00
Love Hörnquist Åstrand
9f7e73f7db
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17002 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-04 14:19:25 +00:00
Love Hörnquist Åstrand
b866404406
(read_words): catch empty file case, will cause PBE (division by zero)
...
later. From Tobias Stoeckmann.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17001 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-04 14:19:13 +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
Love Hörnquist Åstrand
137496caa9
adapt to rename of pkcs10-create to request-create
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16982 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 07:56:34 +00:00
Love Hörnquist Åstrand
b630b37558
Rename pkcs10-create to request-create
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16981 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 07:55:13 +00:00
Love Hörnquist Åstrand
66fce528ed
Avoid crashing on bad input.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16980 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 07:45:48 +00:00
Love Hörnquist Åstrand
dad83f50d7
(pkcs10_create): use opt->subject_string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16979 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:33:29 +00:00
Love Hörnquist Åstrand
c32b846d53
Add pkcs10-create --subject
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16978 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:32:57 +00:00
Love Hörnquist Åstrand
2f417fa784
Add test_req to commands
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16977 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:32:10 +00:00