summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_verify.c
diff options
context:
space:
mode:
authorbeck <>2020-09-15 11:55:14 +0000
committerbeck <>2020-09-15 11:55:14 +0000
commit4abed603e66e229dd22adefec8520b9a472ed533 (patch)
tree8192c077f2ef8442fec646b97bcbedf8d15e04aa /src/lib/libcrypto/x509/x509_verify.c
parentae829e60e2e59d44b8414fe32e951de15367a3f8 (diff)
downloadopenbsd-4abed603e66e229dd22adefec8520b9a472ed533.tar.gz
openbsd-4abed603e66e229dd22adefec8520b9a472ed533.tar.bz2
openbsd-4abed603e66e229dd22adefec8520b9a472ed533.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.c4
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
487static int 487int
488x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter) 488x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter)
489{ 489{
490 int type; 490 int type;