From f4f28ec1b98b4eda170852b2ca8bf94715cc4f7c Mon Sep 17 00:00:00 2001
From: tb <>
Date: Thu, 21 Oct 2021 15:52:02 +0000
Subject: Prepare to make X509 opaque.

ok jsing
---
 src/lib/libcrypto/x509/x509.h | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'src/lib')

diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h
index a3d17a426b..d3b4367924 100644
--- a/src/lib/libcrypto/x509/x509.h
+++ b/src/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)
 
-- 
cgit v1.2.3-55-g6feb