diff options
| author | tb <> | 2021-10-21 15:52:02 +0000 |
|---|---|---|
| committer | tb <> | 2021-10-21 15:52:02 +0000 |
| commit | f4f28ec1b98b4eda170852b2ca8bf94715cc4f7c (patch) | |
| tree | 2e234d27732db64316ac1d7ae2f14a29b5b542f3 /src/lib | |
| parent | c3ed235e93d44a37a4317faaee621e1452ec843c (diff) | |
| download | openbsd-f4f28ec1b98b4eda170852b2ca8bf94715cc4f7c.tar.gz openbsd-f4f28ec1b98b4eda170852b2ca8bf94715cc4f7c.tar.bz2 openbsd-f4f28ec1b98b4eda170852b2ca8bf94715cc4f7c.zip | |
Prepare to make X509 opaque.
ok jsing
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/libcrypto/x509/x509.h | 11 |
1 files changed, 7 insertions, 4 deletions
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 @@ | |||
| 1 | /* $OpenBSD: x509.h,v 1.77 2021/10/21 13:02:00 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.78 2021/10/21 15:52:02 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 | * |
| @@ -265,8 +265,10 @@ typedef struct x509_cert_aux_st | |||
| 265 | STACK_OF(X509_ALGOR) *other; /* other unspecified info */ | 265 | STACK_OF(X509_ALGOR) *other; /* other unspecified info */ |
| 266 | } X509_CERT_AUX; | 266 | } X509_CERT_AUX; |
| 267 | 267 | ||
| 268 | struct x509_st | 268 | struct x509_st; |
| 269 | { | 269 | |
| 270 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | ||
| 271 | struct x509_st { | ||
| 270 | X509_CINF *cert_info; | 272 | X509_CINF *cert_info; |
| 271 | X509_ALGOR *sig_alg; | 273 | X509_ALGOR *sig_alg; |
| 272 | ASN1_BIT_STRING *signature; | 274 | ASN1_BIT_STRING *signature; |
| @@ -295,7 +297,8 @@ struct x509_st | |||
| 295 | unsigned char sha1_hash[SHA_DIGEST_LENGTH]; | 297 | unsigned char sha1_hash[SHA_DIGEST_LENGTH]; |
| 296 | #endif | 298 | #endif |
| 297 | X509_CERT_AUX *aux; | 299 | X509_CERT_AUX *aux; |
| 298 | } /* X509 */; | 300 | } /* X509 */; |
| 301 | #endif | ||
| 299 | 302 | ||
| 300 | DECLARE_STACK_OF(X509) | 303 | DECLARE_STACK_OF(X509) |
| 301 | 304 | ||
