summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_vfy.c
diff options
context:
space:
mode:
authortb <>2021-11-07 15:52:38 +0000
committertb <>2021-11-07 15:52:38 +0000
commit96dd57eb43c913bd5831db883e29231b45d3dc93 (patch)
treea1e4035d23751a0a69ee548ab29d1266d756095d /src/lib/libcrypto/x509/x509_vfy.c
parent9a03e04c6f0b6f8a87ed2d3598d6890d034dad59 (diff)
downloadopenbsd-96dd57eb43c913bd5831db883e29231b45d3dc93.tar.gz
openbsd-96dd57eb43c913bd5831db883e29231b45d3dc93.tar.bz2
openbsd-96dd57eb43c913bd5831db883e29231b45d3dc93.zip
In X509_STORE_CTX, rename the X509_STORE store rather than ctx.
ok gnezdo jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.c')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c
index aad9cf50c4..a36cc8ef71 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.95 2021/11/07 15:51:23 tb Exp $ */ 1/* $OpenBSD: x509_vfy.c,v 1.96 2021/11/07 15:52:38 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 *
@@ -906,8 +906,8 @@ lookup_cert_match(X509_STORE_CTX *ctx, X509 *x)
906X509 * 906X509 *
907x509_vfy_lookup_cert_match(X509_STORE_CTX *ctx, X509 *x) 907x509_vfy_lookup_cert_match(X509_STORE_CTX *ctx, X509 *x)
908{ 908{
909 if (ctx->lookup_certs == NULL || ctx->ctx == NULL || 909 if (ctx->lookup_certs == NULL || ctx->store == NULL ||
910 ctx->ctx->objs == NULL) 910 ctx->store->objs == NULL)
911 return NULL; 911 return NULL;
912 return lookup_cert_match(ctx, x); 912 return lookup_cert_match(ctx, x);
913} 913}
@@ -1415,7 +1415,7 @@ check_crl_path(X509_STORE_CTX *ctx, X509 *x)
1415 /* Don't allow recursive CRL path validation */ 1415 /* Don't allow recursive CRL path validation */
1416 if (ctx->parent) 1416 if (ctx->parent)
1417 return 0; 1417 return 0;
1418 if (!X509_STORE_CTX_init(&crl_ctx, ctx->ctx, x, ctx->untrusted)) { 1418 if (!X509_STORE_CTX_init(&crl_ctx, ctx->store, x, ctx->untrusted)) {
1419 ret = -1; 1419 ret = -1;
1420 goto err; 1420 goto err;
1421 } 1421 }
@@ -2212,7 +2212,7 @@ X509_STORE_CTX_get0_parent_ctx(X509_STORE_CTX *ctx)
2212X509_STORE * 2212X509_STORE *
2213X509_STORE_CTX_get0_store(X509_STORE_CTX *xs) 2213X509_STORE_CTX_get0_store(X509_STORE_CTX *xs)
2214{ 2214{
2215 return xs->ctx; 2215 return xs->store;
2216} 2216}
2217 2217
2218void 2218void
@@ -2352,7 +2352,7 @@ X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509,
2352 * may fail should go last to make sure 'ctx' is as consistent as 2352 * may fail should go last to make sure 'ctx' is as consistent as
2353 * possible even on early exits. 2353 * possible even on early exits.
2354 */ 2354 */
2355 ctx->ctx = store; 2355 ctx->store = store;
2356 ctx->cert = x509; 2356 ctx->cert = x509;
2357 ctx->untrusted = chain; 2357 ctx->untrusted = chain;
2358 2358