diff options
| author | tb <> | 2021-11-07 15:52:38 +0000 | 
|---|---|---|
| committer | tb <> | 2021-11-07 15:52:38 +0000 | 
| commit | df18937de2216b3ccdfae4fd8f3e8cb4f8758618 (patch) | |
| tree | a1e4035d23751a0a69ee548ab29d1266d756095d /src/lib/libcrypto/x509/x509_vfy.c | |
| parent | 04f74fcb117c9a3dfee31764c43203715cfe59c7 (diff) | |
| download | openbsd-df18937de2216b3ccdfae4fd8f3e8cb4f8758618.tar.gz openbsd-df18937de2216b3ccdfae4fd8f3e8cb4f8758618.tar.bz2 openbsd-df18937de2216b3ccdfae4fd8f3e8cb4f8758618.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.c | 12 | 
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) | |||
| 906 | X509 * | 906 | X509 * | 
| 907 | x509_vfy_lookup_cert_match(X509_STORE_CTX *ctx, X509 *x) | 907 | x509_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) | |||
| 2212 | X509_STORE * | 2212 | X509_STORE * | 
| 2213 | X509_STORE_CTX_get0_store(X509_STORE_CTX *xs) | 2213 | X509_STORE_CTX_get0_store(X509_STORE_CTX *xs) | 
| 2214 | { | 2214 | { | 
| 2215 | return xs->ctx; | 2215 | return xs->store; | 
| 2216 | } | 2216 | } | 
| 2217 | 2217 | ||
| 2218 | void | 2218 | void | 
| @@ -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 | ||
