summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2011-11-10 21:09:17 +0100
committerSimon Josefsson <simon@josefsson.org>2011-11-10 21:09:17 +0100
commitb5f6c58ae2d6b4bcbeea5d25888fedb4a93849f8 (patch)
treebb34008f9484bcf3e26922f84b93b1e39bac2edb
parent647edb316fa9f7415a9d4ff7a1ab4b12b5580563 (diff)
downloadgnutls-b5f6c58ae2d6b4bcbeea5d25888fedb4a93849f8.tar.gz
Add verify-high.h, to export some structs (for OCSP).
-rw-r--r--lib/x509/verify-high.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/x509/verify-high.h b/lib/x509/verify-high.h
new file mode 100644
index 0000000000..c241b08581
--- /dev/null
+++ b/lib/x509/verify-high.h
@@ -0,0 +1,25 @@
+struct named_cert_st {
+ gnutls_x509_crt_t cert;
+ uint8_t name[MAX_NAME_SIZE];
+ unsigned int name_size;
+};
+
+struct node_st {
+ /* The trusted certificates */
+ gnutls_x509_crt_t *trusted_cas;
+ unsigned int trusted_ca_size;
+
+ struct named_cert_st *named_certs;
+ unsigned int named_cert_size;
+
+ /* The trusted CRLs */
+ gnutls_x509_crl_t *crls;
+ unsigned int crl_size;
+};
+
+struct gnutls_x509_trust_list_st {
+ int size;
+ struct node_st *node;
+};
+
+#define INIT_HASH 0x33a1