diff options
author | tb <> | 2022-07-07 13:01:28 +0000 |
---|---|---|
committer | tb <> | 2022-07-07 13:01:28 +0000 |
commit | 144c180757b1433631a8e64a3dd86b9e3364d97c (patch) | |
tree | 539767872181d9087ed86b86848b9b25031ed468 /src/lib/libcrypto/x509 | |
parent | 42eea85c684d57fd6947ac89719d3c7cb26cd34e (diff) | |
download | openbsd-144c180757b1433631a8e64a3dd86b9e3364d97c.tar.gz openbsd-144c180757b1433631a8e64a3dd86b9e3364d97c.tar.bz2 openbsd-144c180757b1433631a8e64a3dd86b9e3364d97c.zip |
Expose new API in headers.
These are mostly security-level related, but there are also ASN1_TIME
and ASN_INTEGER functions here, as well as some missing accessors.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h index b18dd02fc0..98b1cf5e92 100644 --- a/src/lib/libcrypto/x509/x509_vfy.h +++ b/src/lib/libcrypto/x509/x509_vfy.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_vfy.h,v 1.53 2022/07/04 12:17:32 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.h,v 1.54 2022/07/07 13:01:28 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 | * |
@@ -205,12 +205,10 @@ void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth); | |||
205 | /* Issuer lookup error */ | 205 | /* Issuer lookup error */ |
206 | #define X509_V_ERR_STORE_LOOKUP 66 | 206 | #define X509_V_ERR_STORE_LOOKUP 66 |
207 | 207 | ||
208 | #if defined(LIBRESSL_INTERNAL) | ||
209 | /* Security level errors */ | 208 | /* Security level errors */ |
210 | #define X509_V_ERR_EE_KEY_TOO_SMALL 67 | 209 | #define X509_V_ERR_EE_KEY_TOO_SMALL 67 |
211 | #define X509_V_ERR_CA_KEY_TOO_SMALL 68 | 210 | #define X509_V_ERR_CA_KEY_TOO_SMALL 68 |
212 | #define X509_V_ERR_CA_MD_TOO_WEAK 69 | 211 | #define X509_V_ERR_CA_MD_TOO_WEAK 69 |
213 | #endif | ||
214 | 212 | ||
215 | /* Certificate verify flags */ | 213 | /* Certificate verify flags */ |
216 | 214 | ||
@@ -433,10 +431,8 @@ unsigned long X509_VERIFY_PARAM_get_flags(X509_VERIFY_PARAM *param); | |||
433 | int X509_VERIFY_PARAM_set_purpose(X509_VERIFY_PARAM *param, int purpose); | 431 | int X509_VERIFY_PARAM_set_purpose(X509_VERIFY_PARAM *param, int purpose); |
434 | int X509_VERIFY_PARAM_set_trust(X509_VERIFY_PARAM *param, int trust); | 432 | int X509_VERIFY_PARAM_set_trust(X509_VERIFY_PARAM *param, int trust); |
435 | void X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param, int depth); | 433 | void X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param, int depth); |
436 | #if defined(LIBRESSL_INTERNAL) | ||
437 | void X509_VERIFY_PARAM_set_auth_level(X509_VERIFY_PARAM *param, int auth_level); | 434 | void X509_VERIFY_PARAM_set_auth_level(X509_VERIFY_PARAM *param, int auth_level); |
438 | time_t X509_VERIFY_PARAM_get_time(const X509_VERIFY_PARAM *param); | 435 | time_t X509_VERIFY_PARAM_get_time(const X509_VERIFY_PARAM *param); |
439 | #endif | ||
440 | void X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t); | 436 | void X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t); |
441 | int X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param, | 437 | int X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param, |
442 | ASN1_OBJECT *policy); | 438 | ASN1_OBJECT *policy); |