Commit Graph

1811 Commits

Author SHA1 Message Date
Love Hornquist Astrand
7a0af9ae18 Its ok to pass down NULL as the context handle to error string function
Just ignore setting the error string if that is the case.
2009-09-21 06:21:23 -07:00
Love Hornquist Astrand
e538b1e84b simplify, make sure length is set properly 2009-09-19 12:57:30 -07:00
Love Hornquist Astrand
26aefa1853 Don't free rsa (NULL) on failure to parse key 2009-09-19 12:35:27 -07:00
Love Hornquist Astrand
3d7488398a abstract out depenecy tracking for tools 2009-09-16 05:40:55 -07:00
Love Hornquist Astrand
dc4e8669ea Abstract out asn1_compile and slc 2009-09-16 00:12:13 -07:00
Love Hornquist Astrand
9f5d22b98a define and use d2i_RSAPublicKey 2009-08-21 18:57:09 -07:00
Love Hornquist Astrand
72e306c7e3 Push cert down deaper into the stack 2009-08-21 18:34:21 -07:00
Love Hornquist Astrand
aee7858b16 Clean new files 2009-08-21 15:14:57 -07:00
Love Hornquist Astrand
edb688c1e7 don't run EC test if there is broken EC support 2009-08-21 14:04:13 -07:00
Love Hornquist Astrand
30aa8a7166 there is already one verify, don't make two 2009-08-21 13:42:22 -07:00
Love Hornquist Astrand
03cb3aa56b use EVP_MD_CTX_create 2009-08-20 17:13:09 -07:00
Love Hornquist Astrand
27b8565d5f Make verifing detached signatures easier 2009-08-20 16:27:25 -07:00
Love Hornquist Astrand
e3da85a4ab add aliases to commands 2009-08-20 14:05:18 -07:00
Love Hornquist Astrand
f0aec0e637 allow one argument 2009-08-20 10:20:09 -07:00
Love Hornquist Astrand
62dc336bf9 Friendlier signing 2009-08-20 09:59:05 -07:00
Love Hornquist Astrand
a7b2f1460b Allow --no-signer to work 2009-08-20 08:50:27 -07:00
Love Hornquist Astrand
a1f6faed25 switch to use EVP interface instead of old MDX_ style interface 2009-08-17 10:23:01 +02:00
Love Hornquist Astrand
eceaab6670 use ct_memcmp 2009-08-15 14:24:19 +02:00
Love Hornquist Astrand
0bb8ad20d3 Use EVP for digest signatures 2009-08-15 14:24:00 +02:00
Love Hornquist Astrand
92288a7137 Avoid testing ECDSA when hcrypto doesn't support it 2009-08-14 16:24:35 +02:00
Love Hornquist Astrand
c9bc9957aa add ecdsa: hcrypto null if we are not using openssl 2009-08-14 16:21:01 +02:00
Love Hornquist Astrand
a72efaea19 drop dirfd(), and move to roken 2009-08-14 10:40:40 +02:00
Love Hornquist Astrand
7c18fc4cfe Solaris doesn't have dirfd(), lets pull it out from DIR * 2009-08-14 10:12:44 +02:00
Love Hornquist Astrand
d3828fe201 Don't depend on that memcmp() have same return value on all platforms
BSDish libc returns -14 3 14, while GNU LIBC returns -1 3 1.
2009-08-14 05:34:50 +02:00
Love Hornquist Astrand
658a7b52ca clean better 2009-08-06 10:19:51 +02:00
Love Hornquist Astrand
1fc7af5bcf Add missing files 2009-08-05 11:13:01 +02:00
Love Hornquist Astrand
5373d3a869 Allow parsing of cert fail unless HX509_CERTS_UNPROTECT_ALL is set. 2009-07-30 10:20:04 +02:00
Love Hornquist Astrand
b1dc4dc97e (_hx509_Name_to_string): free memory on failure (that should not happen) [CID 176] 2009-07-30 07:25:36 +02:00
Love Hörnquist Åstrand
4c302b52f8 remove unused type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25285 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-06-17 18:10:59 +00:00
Love Hörnquist Åstrand
b57571d609 add depencies for ocsp_asn1.h pkcs10_asn1.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25265 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-06-03 17:25:28 +00:00
Love Hörnquist Åstrand
2f58f14e09 add hx509_peer_info_add_cms_alg and sort
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25256 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:21:39 +00:00
Love Hörnquist Åstrand
357a115f65 Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25248 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:20:06 +00:00
Love Hörnquist Åstrand
3d88641010 Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25247 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:19:55 +00:00
Love Hörnquist Åstrand
f0f5f236dc Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25246 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:19:45 +00:00
Love Hörnquist Åstrand
001e058f91 Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25245 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:19:34 +00:00
Love Hörnquist Åstrand
4cd4853c3b Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25244 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:19:22 +00:00
Love Hörnquist Åstrand
c8e9f23dc4 Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25243 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:19:12 +00:00
Love Hörnquist Åstrand
becda09568 Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25242 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:19:03 +00:00
Love Hörnquist Åstrand
7a23a190a1 Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25241 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:18:53 +00:00
Love Hörnquist Åstrand
2baa886d7a Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25240 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:18:43 +00:00
Love Hörnquist Åstrand
7df0a533ab Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25239 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:18:32 +00:00
Love Hörnquist Åstrand
8a5799199b Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25238 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:18:23 +00:00
Love Hörnquist Åstrand
f290cd306e Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25237 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:18:13 +00:00
Love Hörnquist Åstrand
9957a09bba Use OID variable instead of function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25236 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:18:03 +00:00
Love Hörnquist Åstrand
dccd572c45 use S_ISDIR
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25228 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-25 23:44:41 +00:00
Love Hörnquist Åstrand
2e992827d9 remove unused variable, set ret before use
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25227 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-25 23:44:29 +00:00
Love Hörnquist Åstrand
21ceaf518f clear error string, it makes no sense
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25224 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-25 23:43:57 +00:00
Love Hörnquist Åstrand
6fcb49d88f ignore failure when --never-fail flag is passed in
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25223 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-25 23:43:47 +00:00
Love Hörnquist Åstrand
d17fab3f7b add --never-fail flag to print
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25222 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-25 23:43:36 +00:00
Love Hörnquist Åstrand
6dc1f7bb98 Support parsing keys that have the group parameter include in the
EC_PrivateKey block. PKCS8's -- PRIVATE KEY -- vs PEM's -- EC PRIVATE KEY --

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25221 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-25 23:43:26 +00:00