Commit Graph

1857 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
1cb767da13 (parse_rsa_private_key): make working for one password.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17134 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 14:35:08 +00:00
Love Hörnquist Åstrand
95b95b5581 (parse_rsa_private_key): Implement enought for testing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17133 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 13:26:11 +00:00
Love Hörnquist Åstrand
965277671b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17130 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 12:58:25 +00:00
Love Hörnquist Åstrand
220564fa0e Add <ctype.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17129 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 12:58:05 +00:00
Love Hörnquist Åstrand
5b6f397c2d Add glue code for PEM encrypted password files.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 12:45:53 +00:00
Love Hörnquist Åstrand
5f401a4cc1 Add commeted out password protected PEM file, remove password for
those tests that doesn't need it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 12:45:08 +00:00
Love Hörnquist Åstrand
5da43afe25 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 12:02:49 +00:00
Love Hörnquist Åstrand
5e5672295c Add an encrypted key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17125 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 12:02:35 +00:00
Love Hörnquist Åstrand
a7525d7ee9 remove stray #
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17124 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 11:33:01 +00:00
Love Hörnquist Åstrand
d21857e2fb adapt test now that we can use any certificate and trust anchor
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17123 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 11:27:22 +00:00
Love Hörnquist Åstrand
61ab887d2a handle PEM RSA PRIVATE KEY files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17122 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 11:26:05 +00:00
Love Hörnquist Åstrand
4e37989b39 Remove unused function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17121 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 11:25:20 +00:00
Love Hörnquist Åstrand
a5d612781e move code here from ks_file.c now that its no longer used.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17120 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 11:24:42 +00:00
Love Hörnquist Åstrand
aa1e57cd27 Add support for parsing unencrypted RSA PRIVATE KEY
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17119 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 11:24:02 +00:00
Love Hörnquist Åstrand
6bb4cc8a23 Handle rsa private keys better.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17118 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 11:23:16 +00:00
Love Hörnquist Åstrand
cb1f6e5345 Use hx509_cms_{,un}wrap_ContentInfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17116 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 19:37:32 +00:00
Love Hörnquist Åstrand
d1e9d70d7c Make hx509_cms_{,un}wrap_ContentInfo usable in asn1 un-aware code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17115 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 19:37:13 +00:00
Love Hörnquist Åstrand
0b999b8d68 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 18:08:22 +00:00
Love Hörnquist Åstrand
866f4be765 (hx509_verify_path): if trust anchor is not self signed, don't check sig
From Douglas Engert.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17108 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 17:05:11 +00:00
Love Hörnquist Åstrand
6195a45286 test "sub-cert -> sub-ca"
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17107 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 17:03:51 +00:00
Love Hörnquist Åstrand
fa1990b911 Use the right length for the sha256 checksums.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 16:47:09 +00:00
Love Hörnquist Åstrand
52ad892d83 Add inital version of CRMF asn1 spec, not getting IMPLICIT quite right yet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17102 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-18 13:05:21 +00:00
Love Hörnquist Åstrand
8df33c8742 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17101 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 13:30:29 +00:00
Love Hörnquist Åstrand
23a182bbe3 Fix breakage from sha256 code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17086 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 15:38:51 +00:00
Love Hörnquist Åstrand
ae845fd57e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17084 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 12:55:24 +00:00
Love Hörnquist Åstrand
ff19333faa generate rc2 tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17083 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 12:55:03 +00:00
Love Hörnquist Åstrand
c5796dfb7f Add SHA256 support, and symbols for the other new SHA-2 types.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17082 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 12:54:10 +00:00
Love Hörnquist Åstrand
ab868c1a2a test rc2-40 rc2-64 rc2-128 enveloped data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17070 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-14 21:02:00 +00:00
Love Hörnquist Åstrand
ded280162c test cases for rc2
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17069 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-14 21:00:58 +00:00
Love Hörnquist Åstrand
893aa61f9d Update prototypes changes for hx509_crypto_[gs]et_params.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17068 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-14 20:59:14 +00:00
Love Hörnquist Åstrand
be73b86680 Break out the parameter handling code for encrypting data to handle RC2.
Needed for Windows 2k pk-init support.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17067 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-14 20:58: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
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