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
Love Hörnquist Åstrand
ccdec7c9ae
Test for pkcs10 commands.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16976 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:31:42 +00:00
Love Hörnquist Åstrand
10dbe873a1
make rsa_private_key2SPKI static.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16975 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:28:26 +00:00
Love Hörnquist Åstrand
aeeed9cab8
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16974 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:18:50 +00:00
Love Hörnquist Åstrand
49cd3f86ca
Implement i2d_RSAPublicKey
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16973 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:17:30 +00:00
Love Hörnquist Åstrand
b93187f3c7
Add i2d_RSAPublicKey
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16972 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:17:01 +00:00
Love Hörnquist Åstrand
83a5e521ed
(hx509_parse_name): new function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16971 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:14:28 +00:00
Love Hörnquist Åstrand
1e9fea9d39
(pkcs10_create): implement
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16970 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:13:48 +00:00
Love Hörnquist Åstrand
d612a40b89
(pkcs10-create): Add arguments to
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16969 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:12:14 +00:00
Love Hörnquist Åstrand
6a6823b916
Add _hx509_private_key2SPKI and support functions (only support RSA for now).
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16968 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:10:34 +00:00
Love Hörnquist Åstrand
5de3822ce3
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16967 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 20:21:07 +00:00
Love Hörnquist Åstrand
72a5513806
Remove a delta from last revision that should have gone in later.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16966 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 20:20:45 +00:00
Love Hörnquist Åstrand
6a07652c01
Add pkcs10-create command.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16965 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 20:15:40 +00:00
Love Hörnquist Åstrand
3a78c8c3a4
Add hx509_request.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16964 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 20:15:14 +00:00
Love Hörnquist Åstrand
1a1066f5b7
more stuff
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16963 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 20:14:44 +00:00
Love Hörnquist Åstrand
cd4cbf630e
Add req.c
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16962 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 20:13:55 +00:00
Love Hörnquist Åstrand
f2be3565f5
Create certificate requests, prototype converts the request in a pkcs10 packet.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16961 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 20:13:30 +00:00
Love Hörnquist Åstrand
2a5793e1f2
Add pkcs10_create
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16960 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 20:12:32 +00:00
Love Hörnquist Åstrand
d64862d6fa
(hx509_name_copy): new function.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16959 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-02 18:12:46 +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