summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-10-21 15:52:03 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-10-21 15:52:03 +0000
commitf6fa280225a16231c11a924245f2be76a5bdda32 (patch)
tree1fa925f7eac260a3b2487298be4ec5befe8ab9c2
parent7e6106430e509d9fb38937f65f0f0ba7602721f7 (diff)
Prepare to make X509 opaque.
ok jsing
-rw-r--r--lib/libcrypto/x509/x509.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libcrypto/x509/x509.h b/lib/libcrypto/x509/x509.h
index a3d17a426b2..d3b43679242 100644
--- a/lib/libcrypto/x509/x509.h
+++ b/lib/libcrypto/x509/x509.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509.h,v 1.77 2021/10/21 13:02:00 tb Exp $ */
+/* $OpenBSD: x509.h,v 1.78 2021/10/21 15:52:02 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -265,8 +265,10 @@ typedef struct x509_cert_aux_st
STACK_OF(X509_ALGOR) *other; /* other unspecified info */
} X509_CERT_AUX;
-struct x509_st
- {
+struct x509_st;
+
+#if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509)
+struct x509_st {
X509_CINF *cert_info;
X509_ALGOR *sig_alg;
ASN1_BIT_STRING *signature;
@@ -295,7 +297,8 @@ struct x509_st
unsigned char sha1_hash[SHA_DIGEST_LENGTH];
#endif
X509_CERT_AUX *aux;
- } /* X509 */;
+} /* X509 */;
+#endif
DECLARE_STACK_OF(X509)