diff options
| author | beck <> | 2020-09-15 11:55:14 +0000 |
|---|---|---|
| committer | beck <> | 2020-09-15 11:55:14 +0000 |
| commit | f9e39076f36ceb399869336ca8ff1fa4bca490d9 (patch) | |
| tree | 8192c077f2ef8442fec646b97bcbedf8d15e04aa /src/lib/libcrypto/x509/x509_verify.c | |
| parent | ace0595dfcafc1d28ba7448d4ad37261f6a8bfb0 (diff) | |
| download | openbsd-f9e39076f36ceb399869336ca8ff1fa4bca490d9.tar.gz openbsd-f9e39076f36ceb399869336ca8ff1fa4bca490d9.tar.bz2 openbsd-f9e39076f36ceb399869336ca8ff1fa4bca490d9.zip | |
Deduplicate the time validation code between the legacy and new
verification code.
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/x509/x509_verify.c')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_verify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_verify.c b/src/lib/libcrypto/x509/x509_verify.c index 431f5ab1bc..c3280774f9 100644 --- a/src/lib/libcrypto/x509/x509_verify.c +++ b/src/lib/libcrypto/x509/x509_verify.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_verify.c,v 1.6 2020/09/14 12:33:51 beck Exp $ */ | 1 | /* $OpenBSD: x509_verify.c,v 1.7 2020/09/15 11:55:14 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> |
| 4 | * | 4 | * |
| @@ -484,7 +484,7 @@ x509_verify_set_check_time(struct x509_verify_ctx *ctx) { | |||
| 484 | return 1; | 484 | return 1; |
| 485 | } | 485 | } |
| 486 | 486 | ||
| 487 | static int | 487 | int |
| 488 | x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter) | 488 | x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter) |
| 489 | { | 489 | { |
| 490 | int type; | 490 | int type; |
