diff options
Diffstat (limited to 'src/lib/libcrypto')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index a36cc8ef71..b044f4931e 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.96 2021/11/07 15:52:38 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.c,v 1.97 2021/11/13 18:24:45 schwarze 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 | * |
| @@ -1080,17 +1080,17 @@ err: | |||
| 1080 | static int | 1080 | static int |
| 1081 | check_crl_time(X509_STORE_CTX *ctx, X509_CRL *crl, int notify) | 1081 | check_crl_time(X509_STORE_CTX *ctx, X509_CRL *crl, int notify) |
| 1082 | { | 1082 | { |
| 1083 | time_t *ptime = NULL; | 1083 | time_t *ptime; |
| 1084 | int i; | 1084 | int i; |
| 1085 | 1085 | ||
| 1086 | if (ctx->param->flags & X509_V_FLAG_NO_CHECK_TIME) | ||
| 1087 | return (1); | ||
| 1088 | |||
| 1089 | if (ctx->param->flags & X509_V_FLAG_USE_CHECK_TIME) | ||
| 1090 | ptime = &ctx->param->check_time; | ||
| 1091 | |||
| 1092 | if (notify) | 1086 | if (notify) |
| 1093 | ctx->current_crl = crl; | 1087 | ctx->current_crl = crl; |
| 1088 | if (ctx->param->flags & X509_V_FLAG_USE_CHECK_TIME) | ||
| 1089 | ptime = &ctx->param->check_time; | ||
| 1090 | else if (ctx->param->flags & X509_V_FLAG_NO_CHECK_TIME) | ||
| 1091 | return (1); | ||
| 1092 | else | ||
| 1093 | ptime = NULL; | ||
| 1094 | 1094 | ||
| 1095 | i = X509_cmp_time(X509_CRL_get_lastUpdate(crl), ptime); | 1095 | i = X509_cmp_time(X509_CRL_get_lastUpdate(crl), ptime); |
| 1096 | if (i == 0) { | 1096 | if (i == 0) { |
