Commit Graph

16680 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
8699156461 Expose the path building function to internal functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17167 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 11:38:39 +00:00
Love Hörnquist Åstrand
0cf7710dea (hx509_cms_create_signed_1): calculate path and add it to the
SignedData structure.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17166 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 11:37:17 +00:00
Love Hörnquist Åstrand
2742f6e454 swich to the public query interface
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17165 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 09:49:30 +00:00
Love Hörnquist Åstrand
5f000f25e6 cms-envelope: Add support for choosing the encryption type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17164 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 07:40:23 +00:00
Love Hörnquist Åstrand
46e2119c8d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17163 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 07:39:15 +00:00
Love Hörnquist Åstrand
ee70aac58c (cms_create_enveloped): Add support for choosing the encryption type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17162 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 07:37:46 +00:00
Love Hörnquist Åstrand
d459cbb457 Test generating des-ede3 aes-128 aes-256 enveloped data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17161 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 07:35:13 +00:00
Love Hörnquist Åstrand
2ecd5af5e2 Add names to cipher types.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17160 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 07:23:28 +00:00
Love Hörnquist Åstrand
7391a1abf9 (hx509_query_match_friendly_name): fix return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17159 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 07:22:15 +00:00
Love Hörnquist Åstrand
4ddd614491 generate tests for enveloped data using des-ede3 and aes256
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17158 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 07:12:12 +00:00
Love Hörnquist Åstrand
81f51b2dba add tests for enveloped data using des-ede3 and aes256
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17157 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 07:11:38 +00:00
Love Hörnquist Åstrand
8bbd1c18e7 quiet down
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17156 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 07:07:26 +00:00
Love Hörnquist Åstrand
de3fc43fd1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17155 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 06:55:42 +00:00
Love Hörnquist Åstrand
706620d8e1 Add check for fnmatch.h, its needed to be done for the automake
conditional below.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17154 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-22 06:54:43 +00:00
Love Hörnquist Åstrand
8baf696034 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17153 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 22:17:49 +00:00
Love Hörnquist Åstrand
5f7eeddc5e (hx509_query_match_friendly_name): New function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17152 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 22:16:55 +00:00
Love Hörnquist Åstrand
2e5cb05193 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17151 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 22:01:23 +00:00
Love Hörnquist Åstrand
19256d0fbd Add support for parsing slot-number.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17150 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 21:58:09 +00:00
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
3fd96d0c27 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17143 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 21:01:35 +00:00
Love Hörnquist Åstrand
210a05bcee add sha-1 and sha-2
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17142 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 21:00:14 +00:00
Love Hörnquist Åstrand
a373ad9424 implement EVP_BytesToKey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17141 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 15:25:43 +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
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