summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.c30
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}
2201LCRYPTO_ALIAS(X509_STORE_CTX_set0_crls); 2201LCRYPTO_ALIAS(X509_STORE_CTX_set0_crls);
2202 2202
2203int
2204X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose)
2205{
2206 return X509_STORE_CTX_purpose_inherit(ctx, 0, purpose, 0);
2207}
2208LCRYPTO_ALIAS(X509_STORE_CTX_set_purpose);
2209
2210int
2211X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust)
2212{
2213 return X509_STORE_CTX_purpose_inherit(ctx, 0, 0, trust);
2214}
2215LCRYPTO_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}
2271LCRYPTO_ALIAS(X509_STORE_CTX_purpose_inherit); 2257LCRYPTO_ALIAS(X509_STORE_CTX_purpose_inherit);
2272 2258
2259int
2260X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose)
2261{
2262 return X509_STORE_CTX_purpose_inherit(ctx, 0, purpose, 0);
2263}
2264LCRYPTO_ALIAS(X509_STORE_CTX_set_purpose);
2265
2266int
2267X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust)
2268{
2269 return X509_STORE_CTX_purpose_inherit(ctx, 0, 0, trust);
2270}
2271LCRYPTO_ALIAS(X509_STORE_CTX_set_trust);
2272
2273X509_STORE_CTX * 2273X509_STORE_CTX *
2274X509_STORE_CTX_new(void) 2274X509_STORE_CTX_new(void)
2275{ 2275{