Commit Graph

1267 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
44ffd3d770 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17149 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 21:19:32 +00:00
Love Hörnquist Åstrand
f574f03d70 (oid_private_rc2_40): simply
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17148 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 21:18:14 +00:00
Love Hörnquist Åstrand
cfdc3e297c Use oid from asn1 generator.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17147 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 21:14:46 +00:00
Love Hörnquist Åstrand
67e0d93a8a (file_init): reset length when done with a part
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17146 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 21:13:49 +00:00
Love Hörnquist Åstrand
60581c73b0 check with test.combined.crt.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17145 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 21:12:15 +00:00
Love Hörnquist Åstrand
fbb94a10bc Create test.combined.crt.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17144 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 21:09:06 +00:00
Love Hörnquist Åstrand
2c77a16770 Test signed data using keyfile that is encrypted.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17140 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 15:04:52 +00:00
Love Hörnquist Åstrand
af56b03fd1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17139 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 15:03:20 +00:00
Love Hörnquist Åstrand
01c7345f08 Remove (commented out) debug printf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17138 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 15:03:07 +00:00
Love Hörnquist Åstrand
f4e2e10360 (parse_rsa_private_key): use EVP_get_cipherbyname
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17135 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 15:00:10 +00:00
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