diff options
| author | tb <> | 2021-10-31 16:51:16 +0000 |
|---|---|---|
| committer | tb <> | 2021-10-31 16:51:16 +0000 |
| commit | bfbb62f722120435fb7a4e95c6890f5cbe578493 (patch) | |
| tree | 0a0bb1eb5683c2a6bd66e9b08430197e4e00b64e /src/lib/libcrypto/x509/x509.h | |
| parent | a1aa1675f2135c868326ac4da7dfa780a427331f (diff) | |
| download | openbsd-bfbb62f722120435fb7a4e95c6890f5cbe578493.tar.gz openbsd-bfbb62f722120435fb7a4e95c6890f5cbe578493.tar.bz2 openbsd-bfbb62f722120435fb7a4e95c6890f5cbe578493.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 'src/lib/libcrypto/x509/x509.h')
| -rw-r--r-- | src/lib/libcrypto/x509/x509.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 70e3f756c6..43b2307c8f 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.84 2021/10/31 16:29:58 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.85 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 | * |
| @@ -139,7 +139,7 @@ typedef struct X509_val_st { | |||
| 139 | ASN1_TIME *notAfter; | 139 | ASN1_TIME *notAfter; |
| 140 | } X509_VAL; | 140 | } X509_VAL; |
| 141 | 141 | ||
| 142 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 142 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 143 | struct X509_pubkey_st { | 143 | struct X509_pubkey_st { |
| 144 | X509_ALGOR *algor; | 144 | X509_ALGOR *algor; |
| 145 | ASN1_BIT_STRING *public_key; | 145 | ASN1_BIT_STRING *public_key; |
| @@ -164,7 +164,7 @@ typedef struct X509_name_entry_st X509_NAME_ENTRY; | |||
| 164 | 164 | ||
| 165 | DECLARE_STACK_OF(X509_NAME_ENTRY) | 165 | DECLARE_STACK_OF(X509_NAME_ENTRY) |
| 166 | 166 | ||
| 167 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 167 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 168 | /* we always keep X509_NAMEs in 2 forms. */ | 168 | /* we always keep X509_NAMEs in 2 forms. */ |
| 169 | struct X509_name_st { | 169 | struct X509_name_st { |
| 170 | STACK_OF(X509_NAME_ENTRY) *entries; | 170 | STACK_OF(X509_NAME_ENTRY) *entries; |
| @@ -184,7 +184,7 @@ DECLARE_STACK_OF(X509_NAME) | |||
| 184 | 184 | ||
| 185 | #define X509_EX_V_NETSCAPE_HACK 0x8000 | 185 | #define X509_EX_V_NETSCAPE_HACK 0x8000 |
| 186 | #define X509_EX_V_INIT 0x0001 | 186 | #define X509_EX_V_INIT 0x0001 |
| 187 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 187 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 188 | typedef struct X509_extension_st { | 188 | typedef struct X509_extension_st { |
| 189 | ASN1_OBJECT *object; | 189 | ASN1_OBJECT *object; |
| 190 | ASN1_BOOLEAN critical; | 190 | ASN1_BOOLEAN critical; |
| @@ -199,7 +199,7 @@ typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS; | |||
| 199 | DECLARE_STACK_OF(X509_EXTENSION) | 199 | DECLARE_STACK_OF(X509_EXTENSION) |
| 200 | 200 | ||
| 201 | /* a sequence of these are used */ | 201 | /* a sequence of these are used */ |
| 202 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 202 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 203 | typedef struct x509_attributes_st { | 203 | typedef struct x509_attributes_st { |
| 204 | ASN1_OBJECT *object; | 204 | ASN1_OBJECT *object; |
| 205 | int single; /* 0 for a set, 1 for a single item (which is wrong) */ | 205 | int single; /* 0 for a set, 1 for a single item (which is wrong) */ |
| @@ -216,7 +216,7 @@ typedef struct x509_attributes_st X509_ATTRIBUTE; | |||
| 216 | DECLARE_STACK_OF(X509_ATTRIBUTE) | 216 | DECLARE_STACK_OF(X509_ATTRIBUTE) |
| 217 | 217 | ||
| 218 | 218 | ||
| 219 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 219 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 220 | typedef struct X509_req_info_st { | 220 | typedef struct X509_req_info_st { |
| 221 | ASN1_ENCODING enc; | 221 | ASN1_ENCODING enc; |
| 222 | ASN1_INTEGER *version; | 222 | ASN1_INTEGER *version; |
| @@ -258,7 +258,7 @@ typedef struct x509_cinf_st X509_CINF; | |||
| 258 | * the end of the certificate itself | 258 | * the end of the certificate itself |
| 259 | */ | 259 | */ |
| 260 | 260 | ||
| 261 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 261 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 262 | typedef struct x509_cert_aux_st { | 262 | typedef struct x509_cert_aux_st { |
| 263 | STACK_OF(ASN1_OBJECT) *trust; /* trusted uses */ | 263 | STACK_OF(ASN1_OBJECT) *trust; /* trusted uses */ |
| 264 | STACK_OF(ASN1_OBJECT) *reject; /* rejected uses */ | 264 | STACK_OF(ASN1_OBJECT) *reject; /* rejected uses */ |
| @@ -272,7 +272,7 @@ typedef struct x509_cert_aux_st X509_CERT_AUX; | |||
| 272 | 272 | ||
| 273 | struct x509_st; | 273 | struct x509_st; |
| 274 | 274 | ||
| 275 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 275 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 276 | struct x509_st { | 276 | struct x509_st { |
| 277 | X509_CINF *cert_info; | 277 | X509_CINF *cert_info; |
| 278 | X509_ALGOR *sig_alg; | 278 | X509_ALGOR *sig_alg; |
| @@ -422,7 +422,7 @@ DECLARE_STACK_OF(X509_TRUST) | |||
| 422 | XN_FLAG_FN_LN | \ | 422 | XN_FLAG_FN_LN | \ |
| 423 | XN_FLAG_FN_ALIGN) | 423 | XN_FLAG_FN_ALIGN) |
| 424 | 424 | ||
| 425 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 425 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 426 | struct x509_revoked_st { | 426 | struct x509_revoked_st { |
| 427 | ASN1_INTEGER *serialNumber; | 427 | ASN1_INTEGER *serialNumber; |
| 428 | ASN1_TIME *revocationDate; | 428 | ASN1_TIME *revocationDate; |
| @@ -437,7 +437,7 @@ struct x509_revoked_st { | |||
| 437 | 437 | ||
| 438 | DECLARE_STACK_OF(X509_REVOKED) | 438 | DECLARE_STACK_OF(X509_REVOKED) |
| 439 | 439 | ||
| 440 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 440 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 441 | typedef struct X509_crl_info_st { | 441 | typedef struct X509_crl_info_st { |
| 442 | ASN1_INTEGER *version; | 442 | ASN1_INTEGER *version; |
| 443 | X509_ALGOR *sig_alg; | 443 | X509_ALGOR *sig_alg; |
| @@ -452,7 +452,7 @@ typedef struct X509_crl_info_st { | |||
| 452 | typedef struct X509_crl_info_st X509_CRL_INFO; | 452 | typedef struct X509_crl_info_st X509_CRL_INFO; |
| 453 | #endif | 453 | #endif |
| 454 | 454 | ||
| 455 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 455 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 456 | struct X509_crl_st { | 456 | struct X509_crl_st { |
| 457 | /* actual signature */ | 457 | /* actual signature */ |
| 458 | X509_CRL_INFO *crl; | 458 | X509_CRL_INFO *crl; |
| @@ -564,7 +564,7 @@ typedef struct PBKDF2PARAM_st { | |||
| 564 | 564 | ||
| 565 | /* PKCS#8 private key info structure */ | 565 | /* PKCS#8 private key info structure */ |
| 566 | 566 | ||
| 567 | #if defined(LIBRESSL_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) | 567 | #if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) |
| 568 | struct pkcs8_priv_key_info_st { | 568 | struct pkcs8_priv_key_info_st { |
| 569 | ASN1_INTEGER *version; | 569 | ASN1_INTEGER *version; |
| 570 | X509_ALGOR *pkeyalg; | 570 | X509_ALGOR *pkeyalg; |
