Commit Graph

41 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
afe652bd26 Include <limits.h> for TYPE_MAX defines.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23189 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-05-23 15:04:27 +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
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
98b5a611bd Now that KEYCHAIN:system-anchors is fast again, use that.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21083 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-13 02:11:19 +00:00
Love Hörnquist Åstrand
5652b93c15 Disable KEYCHAIN for now, its slow.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20930 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-06 00:23:42 +00:00
Love Hörnquist Åstrand
31ac88517f Add concept of default_trust_anchors.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-05 03:58:24 +00:00
Love Hörnquist Åstrand
7cf2f2ac1a Provide default AlgorithmIdentifier.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20789 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-02 02:30:11 +00:00
Love Hörnquist Åstrand
8ed2bb38e4 Add querystat to hx509_context.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20784 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-02 00:48:51 +00:00
Love Hörnquist Åstrand
e59e71f307 Allow setting parameters to private key generation.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19871 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-12 22:01:58 +00:00
Love Hörnquist Åstrand
82a45c7036 constify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19839 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:55:09 +00:00
Love Hörnquist Åstrand
396d442179 make printinfo char * argument const.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19838 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 09:38:23 +00:00
Love Hörnquist Åstrand
80977a02f6 Factor out private key operation out of the signing, operations, support import, export, and generation of private keys. Add support for writing PEM and PKCS12 files with private keys in them.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19778 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 10:52:13 +00:00
Love Hörnquist Åstrand
5e5521c9e1 Include <pkinit_asn1.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19268 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:16:46 +00:00
Love Hörnquist Åstrand
7a308c3ab3 add HX509_CALCULATE_PATH_NO_ANCHOR
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19237 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 10:32:42 +00:00
Love Hörnquist Åstrand
db093bb975 add time validity-testing to query mask
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19227 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 23:44:32 +00:00
Love Hörnquist Åstrand
1ad4760402 add struct hx509_peer_info
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19119 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-26 15:49:25 +00:00
Love Hörnquist Åstrand
159fc828ab add context variable to cmp function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18910 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-04 23:31:41 +00:00
Love Hörnquist Åstrand
f20917383b Include <parse_bytes.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18486 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-16 14:03:16 +00:00
Love Hörnquist Åstrand
3c1036c1ca Drop heim_any.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 09:22:46 +00:00
Love Hörnquist Åstrand
fd39e36e9c Include <parse_units.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17971 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 08:17:52 +00:00
Love Hörnquist Åstrand
e678f6b2a5 (hx509_keyset_ops): add printinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17965 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-04 07:21:23 +00:00
Love Hörnquist Åstrand
7f6b59890e prototype for _hx509_cert_release_func
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-27 10:59:50 +00:00
Love Hörnquist Åstrand
4123507b93 Add support for error strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17393 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-01 14:04:21 +00:00
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
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
64e02c3d8d Include <hex.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16987 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 15:22:17 +00:00
Love Hörnquist Åstrand
71767d72c9 Include <pkcs10_asn1.h>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16920 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 09:48:16 +00:00
Love Hörnquist Åstrand
7a53af1e6a Add HX509_QUERY_MATCH_KEY_HASH_SHA1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16911 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-01 02:10:24 +00:00
Love Hörnquist Åstrand
51fc07bc6d Add ocsp_time_diff to hx509_context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16886 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-31 22:06:49 +00:00
Love Hörnquist Åstrand
de44f94103 rename HX509_CTX_CRL_MISSING_OK to HX509_CTX_VERIFY_MISSING_OK now
that we have OCSP glue


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16865 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-31 01:43:10 +00:00
Love Hörnquist Åstrand
6a3ce9e3ae Add <krb5-types.h> to make it compile on Solaris, from Alex V. Labuta.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16861 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-30 08:57:37 +00:00
Love Hörnquist Åstrand
12096c0f04 Remove hx509_query, its exposed now.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16809 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-26 23:39:08 +00:00
Love Hörnquist Åstrand
9a0a60e0ee Add HX509_CTX_CRL_MISSING_OK.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16612 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-19 18:13:38 +00:00
Love Hörnquist Åstrand
163c6cb7b5 delete crypto_headers.h, use global file instead
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16560 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 14:02:49 +00:00
Love Hörnquist Åstrand
7dcf3289bb add a hx509_context where we can store configuration
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16476 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-04 20:33:31 +00:00
Love Hörnquist Åstrand
069cfd602a forward type declaration of struct hx509_collector.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16447 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-03 16:30:03 +00:00
Love Hörnquist Åstrand
430ca62d97 Add HX509_QUERY_MATCH_FUNCTION that allows caller to match by
function, note that this doesn't not work directly for backends that
implements ->query, they must do their own processing.
(I'm running out of flags, only 12 left now)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15810 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-27 21:45:25 +00:00
Love Hörnquist Åstrand
765e4bf4ad add HX509_QUERY_MATCH_FRIENDLY_NAME
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-27 19:07:34 +00:00
Love Hörnquist Åstrand
181783a574 add KeyUsage query bits
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15729 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-25 11:46:00 +00:00
Love Hörnquist Åstrand
741d6b5d40 allow matching on SubjectKeyId
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15723 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-24 20:37:39 +00:00
Love Hörnquist Åstrand
0a70228c08 Initial revision
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15716 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-24 16:59:14 +00:00