]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Add verify-high.h, to export some structs (for OCSP).
authorSimon Josefsson <simon@josefsson.org>
Thu, 10 Nov 2011 20:09:17 +0000 (21:09 +0100)
committerSimon Josefsson <simon@josefsson.org>
Thu, 10 Nov 2011 20:09:17 +0000 (21:09 +0100)
lib/x509/verify-high.h [new file with mode: 0644]

diff --git a/lib/x509/verify-high.h b/lib/x509/verify-high.h
new file mode 100644 (file)
index 0000000..c241b08
--- /dev/null
@@ -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