diff options
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index 6c0ad78ec8..2d4061cfdf 100644 --- a/src/lib/libcrypto/x509/x509_vfy.c +++ b/src/lib/libcrypto/x509/x509_vfy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_vfy.c,v 1.126 2023/11/13 10:33:00 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.c,v 1.127 2023/11/27 00:51:12 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 | * |
@@ -2200,20 +2200,6 @@ X509_STORE_CTX_set0_crls(X509_STORE_CTX *ctx, STACK_OF(X509_CRL) *sk) | |||
2200 | } | 2200 | } |
2201 | LCRYPTO_ALIAS(X509_STORE_CTX_set0_crls); | 2201 | LCRYPTO_ALIAS(X509_STORE_CTX_set0_crls); |
2202 | 2202 | ||
2203 | int | ||
2204 | X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose) | ||
2205 | { | ||
2206 | return X509_STORE_CTX_purpose_inherit(ctx, 0, purpose, 0); | ||
2207 | } | ||
2208 | LCRYPTO_ALIAS(X509_STORE_CTX_set_purpose); | ||
2209 | |||
2210 | int | ||
2211 | X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust) | ||
2212 | { | ||
2213 | return X509_STORE_CTX_purpose_inherit(ctx, 0, 0, trust); | ||
2214 | } | ||
2215 | LCRYPTO_ALIAS(X509_STORE_CTX_set_trust); | ||
2216 | |||
2217 | /* This function is used to set the X509_STORE_CTX purpose and trust | 2203 | /* This function is used to set the X509_STORE_CTX purpose and trust |
2218 | * values. This is intended to be used when another structure has its | 2204 | * values. This is intended to be used when another structure has its |
2219 | * own trust and purpose values which (if set) will be inherited by | 2205 | * own trust and purpose values which (if set) will be inherited by |
@@ -2270,6 +2256,20 @@ X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose, | |||
2270 | } | 2256 | } |
2271 | LCRYPTO_ALIAS(X509_STORE_CTX_purpose_inherit); | 2257 | LCRYPTO_ALIAS(X509_STORE_CTX_purpose_inherit); |
2272 | 2258 | ||
2259 | int | ||
2260 | X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose) | ||
2261 | { | ||
2262 | return X509_STORE_CTX_purpose_inherit(ctx, 0, purpose, 0); | ||
2263 | } | ||
2264 | LCRYPTO_ALIAS(X509_STORE_CTX_set_purpose); | ||
2265 | |||
2266 | int | ||
2267 | X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust) | ||
2268 | { | ||
2269 | return X509_STORE_CTX_purpose_inherit(ctx, 0, 0, trust); | ||
2270 | } | ||
2271 | LCRYPTO_ALIAS(X509_STORE_CTX_set_trust); | ||
2272 | |||
2273 | X509_STORE_CTX * | 2273 | X509_STORE_CTX * |
2274 | X509_STORE_CTX_new(void) | 2274 | X509_STORE_CTX_new(void) |
2275 | { | 2275 | { |