diff options
author | tb <> | 2024-02-28 12:21:16 +0000 |
---|---|---|
committer | tb <> | 2024-02-28 12:21:16 +0000 |
commit | 035bb53178ba384ec600ea8f4bb49110ae073f30 (patch) | |
tree | b26cf7b3edc11f7e49e27f01c4edee32f38cc2ae /src/lib | |
parent | 6920c18fc4798d2293a62e05be55f58e1c775350 (diff) | |
download | openbsd-035bb53178ba384ec600ea8f4bb49110ae073f30.tar.gz openbsd-035bb53178ba384ec600ea8f4bb49110ae073f30.tar.bz2 openbsd-035bb53178ba384ec600ea8f4bb49110ae073f30.zip |
Use an accessor instead of reaching into X509_PURPOSE
ok jsing
Diffstat (limited to 'src/lib')
-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 | } |