Commit Graph

16402 Commits

Author SHA1 Message Date
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
26712f7c01 make EVP_BytesToKey return an error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17137 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 15:01:44 +00:00
Love Hörnquist Åstrand
22857c96da Add EVP_get_cipherbyname, unbreak EVP_BytesToKey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17136 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 15:01:20 +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
5c59fc96ca Add prototype for EVP_BytesToKey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17132 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 13:06:45 +00:00
Love Hörnquist Åstrand
67e1f79d36 Add stub for EVP_BytesToKey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17131 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 13:06:27 +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
1b73708904 (_kdc_pk_rd_padata): use hx509_cms_unwrap_ContentInfo.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17117 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 19:55:09 +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
a1d2bc1334 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17114 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 18:17:39 +00:00
Love Hörnquist Åstrand
538658a4e5 unbreak
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 18:17:16 +00:00
Love Hörnquist Åstrand
d8e767cb10 Add cpp-rename for DH_check_pubkey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 18:16:17 +00:00
Love Hörnquist Åstrand
2ad7b45365 Handle diffrences between libhcrypto and libcrypto.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 18:15:48 +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
e43d859600 Handle diffrences between libhcrypto and libcrypto.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 17:08:46 +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
45fd105a52 Rename pki-chain to pki-pool to match rest of code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17106 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 17:00:18 +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
2705ba6c2d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17104 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 16:25:34 +00:00
Love Hörnquist Åstrand
9294d850a5 (fnmatch): CPP rename to rk_fnmatch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17103 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 16:24:15 +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
b5bb0fb2b1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17100 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 13:24:08 +00:00
Love Hörnquist Åstrand
134300927d Add more RAND functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17099 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 13:23:04 +00:00
Love Hörnquist Åstrand
0256eb27e6 Split out unix /dev/random to a RAND_METHOD
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17098 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 13:19:05 +00:00
Love Hörnquist Åstrand
347ebf4079 add RAND support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 13:16:17 +00:00
Love Hörnquist Åstrand
1668824ca5 s/rc4_64/rc2_64/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17096 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 13:14:16 +00:00
Love Hörnquist Åstrand
3a87bd3b39 Use right flags to open(2) when doing reading/writing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17095 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 12:25:57 +00:00
Love Hörnquist Åstrand
45a1e8c9ef Add RAND_METHOD and some associated functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 12:19:35 +00:00
Love Hörnquist Åstrand
9d126566c5 Test BN_rand
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17093 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 12:12:11 +00:00
Love Hörnquist Åstrand
5ce1e2cb21 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17092 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-16 19:39:52 +00:00
Love Hörnquist Åstrand
fb47cbf3b2 (ENGINE_by_dso): less printf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17091 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-16 19:39:40 +00:00
Love Hörnquist Åstrand
902f8ff049 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17090 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-16 19:38:47 +00:00