diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_local.h')
-rw-r--r-- | src/lib/libcrypto/x509/x509_local.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/libcrypto/x509/x509_local.h b/src/lib/libcrypto/x509/x509_local.h index b5a02b1146..0f0d5c1de5 100644 --- a/src/lib/libcrypto/x509/x509_local.h +++ b/src/lib/libcrypto/x509/x509_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_local.h,v 1.28 2024/08/31 10:04:50 tb Exp $ */ | 1 | /* $OpenBSD: x509_local.h,v 1.29 2024/08/31 10:12:23 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2013. | 3 | * project 2013. |
4 | */ | 4 | */ |
@@ -71,14 +71,15 @@ __BEGIN_HIDDEN_DECLS | |||
71 | #define X509_CRL_HASH_EVP EVP_sha512() | 71 | #define X509_CRL_HASH_EVP EVP_sha512() |
72 | #define X509_CRL_HASH_LEN SHA512_DIGEST_LENGTH | 72 | #define X509_CRL_HASH_LEN SHA512_DIGEST_LENGTH |
73 | 73 | ||
74 | /* | ||
75 | * Used internally instead of the confusing X509_TRUST_DEFAULT, | ||
76 | * which is not the default for X509_check_trust. | ||
77 | * XXX Make X509_check_trust internal, and move the other | ||
78 | * X509_TRUST values here to clean up this mess. | ||
79 | */ | ||
80 | #define X509_TRUST_ACCEPT_ALL -1 | 74 | #define X509_TRUST_ACCEPT_ALL -1 |
81 | 75 | ||
76 | /* check_trust return codes */ | ||
77 | #define X509_TRUST_TRUSTED 1 | ||
78 | #define X509_TRUST_REJECTED 2 | ||
79 | #define X509_TRUST_UNTRUSTED 3 | ||
80 | |||
81 | int X509_check_trust(X509 *x, int id, int flags); | ||
82 | |||
82 | struct X509_pubkey_st { | 83 | struct X509_pubkey_st { |
83 | X509_ALGOR *algor; | 84 | X509_ALGOR *algor; |
84 | ASN1_BIT_STRING *public_key; | 85 | ASN1_BIT_STRING *public_key; |