From: Simon Josefsson Date: Thu, 10 Nov 2011 11:37:04 +0000 (+0100) Subject: Make verify-high structures internally accessible (for OCSP). X-Git-Tag: gnutls_3_0_8~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53dae4b4ed9c43025fd88aa16e4ae511cc097e88;p=thirdparty%2Fgnutls.git Make verify-high structures internally accessible (for OCSP). --- diff --git a/lib/x509/Makefile.am b/lib/x509/Makefile.am index f5f6efff4f..68412c79ec 100644 --- a/lib/x509/Makefile.am +++ b/lib/x509/Makefile.am @@ -54,5 +54,6 @@ libgnutls_x509_la_SOURCES = \ verify.c \ x509.c \ x509_int.h \ - x509_write.c \ - verify-high.c + x509_write.c \ + verify-high.c \ + verify-high.h diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c index 17ede24565..b0efe32d40 100644 --- a/lib/x509/verify-high.c +++ b/lib/x509/verify-high.c @@ -32,33 +32,9 @@ #include #include "x509_int.h" #include +#include "verify-high.h" #define DEFAULT_SIZE 503 -#define INIT_HASH 0x33a1 - -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; -}; /** * gnutls_x509_trust_list_init: