diff options
| author | tb <> | 2024-02-28 12:21:16 +0000 |
|---|---|---|
| committer | tb <> | 2024-02-28 12:21:16 +0000 |
| commit | 8d19bfb96e2283a05ade274bcedcd621745e9f13 (patch) | |
| tree | b26cf7b3edc11f7e49e27f01c4edee32f38cc2ae /src/lib/libc | |
| parent | 4738b0826cb95f477cf363da00350544bb81c631 (diff) | |
| download | openbsd-8d19bfb96e2283a05ade274bcedcd621745e9f13.tar.gz openbsd-8d19bfb96e2283a05ade274bcedcd621745e9f13.tar.bz2 openbsd-8d19bfb96e2283a05ade274bcedcd621745e9f13.zip | |
Use an accessor instead of reaching into X509_PURPOSE
ok jsing
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index c75b31a61a..499db35578 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.140 2024/02/23 09:50:19 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.c,v 1.141 2024/02/28 12:21:16 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 | * |
| @@ -2204,7 +2204,7 @@ X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose_id) | |||
| 2204 | if (ctx->param->purpose == 0) | 2204 | if (ctx->param->purpose == 0) |
| 2205 | ctx->param->purpose = purpose_id; | 2205 | ctx->param->purpose = purpose_id; |
| 2206 | if (ctx->param->trust == 0) | 2206 | if (ctx->param->trust == 0) |
| 2207 | ctx->param->trust = purpose->trust; | 2207 | ctx->param->trust = X509_PURPOSE_get_trust(purpose); |
| 2208 | 2208 | ||
| 2209 | return 1; | 2209 | return 1; |
| 2210 | } | 2210 | } |
