summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_vfy.h
diff options
context:
space:
mode:
authortb <>2021-10-31 16:51:16 +0000
committertb <>2021-10-31 16:51:16 +0000
commit125ed695394bdaa6554f2a49599600db43abe881 (patch)
tree0a0bb1eb5683c2a6bd66e9b08430197e4e00b64e /src/lib/libcrypto/x509/x509_vfy.h
parent9088131a0bf4a9930c61b7096992aa4e3fec2959 (diff)
downloadopenbsd-125ed695394bdaa6554f2a49599600db43abe881.tar.gz
openbsd-125ed695394bdaa6554f2a49599600db43abe881.tar.bz2
openbsd-125ed695394bdaa6554f2a49599600db43abe881.zip
Hide struct internals under LIBRESSL_CRYPTO_INTERNAL so that other
parts of LibreSSL can no longer reach into them. discussed with beck, jsing
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h
index d84df8a96e..676145cca7 100644
--- a/src/lib/libcrypto/x509/x509_vfy.h
+++ b/src/lib/libcrypto/x509/x509_vfy.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_vfy.h,v 1.43 2021/10/31 16:26:08 tb Exp $ */ 1/* $OpenBSD: x509_vfy.h,v 1.44 2021/10/31 16:51:16 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -100,7 +100,7 @@ typedef enum {
100 X509_LU_CRL, 100 X509_LU_CRL,
101} X509_LOOKUP_TYPE; 101} X509_LOOKUP_TYPE;
102 102
103#if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) 103#if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509)
104typedef struct x509_object_st { 104typedef struct x509_object_st {
105 /* one of the above types */ 105 /* one of the above types */
106 int type; 106 int type;
@@ -120,7 +120,7 @@ typedef struct x509_lookup_st X509_LOOKUP;
120DECLARE_STACK_OF(X509_LOOKUP) 120DECLARE_STACK_OF(X509_LOOKUP)
121DECLARE_STACK_OF(X509_OBJECT) 121DECLARE_STACK_OF(X509_OBJECT)
122 122
123#if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) 123#if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509)
124/* This is a static that defines the function interface */ 124/* This is a static that defines the function interface */
125typedef struct x509_lookup_method_st { 125typedef struct x509_lookup_method_st {
126 const char *name; 126 const char *name;
@@ -165,7 +165,7 @@ typedef struct X509_VERIFY_PARAM_st X509_VERIFY_PARAM;
165 165
166DECLARE_STACK_OF(X509_VERIFY_PARAM) 166DECLARE_STACK_OF(X509_VERIFY_PARAM)
167 167
168#if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) 168#if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509)
169/* 169/*
170 * This is used to hold everything. It is used for all certificate 170 * This is used to hold everything. It is used for all certificate
171 * validation. Once we have a certificate chain, the 'verify' 171 * validation. Once we have a certificate chain, the 'verify'
@@ -205,7 +205,7 @@ int X509_STORE_set_depth(X509_STORE *store, int depth);
205#define X509_STORE_set_verify_func(ctx,func) ((ctx)->verify=(func)) 205#define X509_STORE_set_verify_func(ctx,func) ((ctx)->verify=(func))
206#endif 206#endif
207 207
208#if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) 208#if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509)
209/* This is the functions plus an instance of the local variables. */ 209/* This is the functions plus an instance of the local variables. */
210struct x509_lookup_st { 210struct x509_lookup_st {
211 int init; /* have we been started */ 211 int init; /* have we been started */