Commit Graph

177 Commits

Author SHA1 Message Date
Jelmer Vernooij
36ade8b509 hx509: Make various functions used by Samba public.
* hx509_cert_public_encrypt
* hx509_parse_private_key
* hx509_private_key_assign_rsa
* hx509_private_key_free
* hx509_private_key_private_decrypt
* hx509_private_key_init
* hx509_private_key2SPKI
* hx509_request_get_name
* hx509_request_get_SubjectPublicKeyInfo
* hx509_request_free
* hx509_request_init
* hx509_request_set_name
* hx509_request_set_SubjectPublicKeyInfo

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2011-02-23 19:47:28 -08:00
Love Hornquist Astrand
44dfbeb596 add --no-embedded-cert and --embed-leak-only 2010-08-10 10:41:58 -07:00
Love Hornquist Astrand
cad74796e5 use hx509_certs_iter_f 2009-11-22 13:52:43 -08:00
Love Hornquist Astrand
d4e2da58cf count certs that verify and if no verify at all, whine 2009-09-30 01:17:50 -07:00
Love Hornquist Astrand
0e762f8689 support output passphrases for copy certificate 2009-09-29 11:28:12 -07:00
Love Hornquist Astrand
92075b8825 add allow wrong oid flag, short for trust anchors 2009-09-23 00:02:46 -07:00
Love Hornquist Astrand
d7dcaae909 str unused, drop 2009-09-21 06:26:39 -07:00
Love Hornquist Astrand
9c89bf0a73 use hx509_print_cert 2009-09-21 06:23:34 -07:00
Love Hornquist Astrand
27b8565d5f Make verifing detached signatures easier 2009-08-20 16:27:25 -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
c9bc9957aa add ecdsa: hcrypto null if we are not using openssl 2009-08-14 16:21:01 +02: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
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
213f234111 use flags to hx509_cms_envelope_1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25207 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-09 14:22:16 +00:00
Love Hörnquist Åstrand
f7a8d0bc32 add allow weak crypto flag
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24960 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-26 23:12:35 +00:00
Love Hörnquist Åstrand
471260363f catch errors
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24861 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:31:31 +00:00
Love Hörnquist Åstrand
ff5dab4f4a remove rcsid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24795 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:28:18 +00:00
Love Hörnquist Åstrand
1ea672676b ECDSA_METHOD-not-export if openssl
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24702 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-14 20:13:48 +00:00
Love Hörnquist Åstrand
fead259d5d use hx509_err
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24659 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-09 17:15:52 +00:00
Love Hörnquist Åstrand
27ca60fe93 Change prototype of hx509_certs_filter().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24611 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:09:41 +00:00
Love Hörnquist Åstrand
d45c54a7f9 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24588 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:05:51 +00:00
Love Hörnquist Åstrand
2e00892ffd handle unsigned signeddata
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24585 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:05:20 +00:00
Love Hörnquist Åstrand
f0214c8843 use hx509_cms_create_signed to create signed data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24579 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:04:18 +00:00
Love Hörnquist Åstrand
131b3d34f5 add flag to hx509_cms_verify_signed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:32:00 +00:00
Love Hörnquist Åstrand
1cfff7cc93 check for failues, cid#160
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24152 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:08:37 +00:00
Love Hörnquist Åstrand
1db27e217e check for failues for hex_encode, cid#159
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24151 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:08:26 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
6ff91f7f31 check return value
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23662 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:30:36 +00:00
Love Hörnquist Åstrand
225a6e45af catch error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23512 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:01:02 +00:00
Love Hörnquist Åstrand
ba8498ce09 catch error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23509 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:00:47 +00:00
Love Hörnquist Åstrand
9365904540 Catch hx509_certs_init() to fail.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23491 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 09:58:51 +00:00
Love Hörnquist Åstrand
b1f885befe use rk_undumpdata, spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23413 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-26 18:34:53 +00:00
Love Hörnquist Åstrand
bde1d0fe9c Break out print_eval_types().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23346 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-14 14:53:51 +00:00
Love Hörnquist Åstrand
f1157b67d7 can't do --self-signed and --request at the same time.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23345 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-14 13:43:50 +00:00
Love Hörnquist Åstrand
58acbe046a Make cert types more dynamtic and provide help string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23343 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-14 13:42:15 +00:00
Love Hörnquist Åstrand
cb61e8d474 drop time_now, its part of the verify context.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23267 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:23:38 +00:00
Love Hörnquist Åstrand
7776ed30a9 Add language to support querying certificates to find a match. Support constructs like "1.3.6.1.5.2.3.5" IN %{certificate.eku} AND %{certificate.subject} TAILMATCH "C=SE"".
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22677 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-03-13 17:35:49 +00:00
Love Hörnquist Åstrand
35a3b73c9c Support verifying PEM signature files.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22651 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-26 12:28:23 +00:00
Love Hörnquist Åstrand
0ff6dbc8bb Add matching on EKU, validate EKUs, add hxtool matching glue, add check. Adapted from pach from Tim Miller of Mitre
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22538 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-01-27 13:05:47 +00:00
Love Hörnquist Åstrand
9266224639 use hx509_free_error_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22333 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-17 01:03:43 +00:00
Love Hörnquist Åstrand
a2c72dc392 Adapt to new request handling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21342 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-26 14:21:34 +00:00
Love Hörnquist Åstrand
addd9c68a9 Use hx509_err to print error and exit.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21338 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-26 12:40:56 +00:00
Love Hörnquist Åstrand
e0bf16a61f use _hx509_request_print
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21334 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-26 12:18:14 +00:00
Love Hörnquist Åstrand
4e34f568f9 don't _hx509_abort
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21330 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-26 11:09:55 +00:00
Love Hörnquist Åstrand
b376cf9ad6 Update to new hx509_pem_write().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-25 18:27:28 +00:00
Love Hörnquist Åstrand
d6310fff09 Enable writing out signed data as a pem attachment.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21303 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-25 16:49:12 +00:00
Love Hörnquist Åstrand
5db583358c Verify hostname and test max-depth.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21274 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-25 04:47:55 +00:00
Love Hörnquist Åstrand
1624d81f5f Use HX509_CMS_SIGATURE_ID_NAME.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21268 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-24 19:24:53 +00:00