sync with OpenBSD -current

This commit is contained in:
purplerain 2024-04-09 04:40:00 +00:00
parent c9b8755e8c
commit fe31ca4724
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
32 changed files with 215 additions and 170 deletions

View file

@ -1,4 +1,4 @@
/* $OpenBSD: rfc5280time.c,v 1.7 2022/09/05 21:12:08 tb Exp $ */
/* $OpenBSD: rfc5280time.c,v 1.8 2024/04/08 19:57:40 beck Exp $ */
/*
* Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2015 Bob Beck <beck@opebsd.org>
@ -234,13 +234,6 @@ rfc5280_invtime_test(int test_no, struct rfc5280_time_test *att)
goto done;
}
}
if (ASN1_TIME_set_string(t, att->str) != 0) {
if (X509_cmp_time(t, &now) != 0) {
fprintf(stderr, "FAIL: test %d - successfully parsed as UTCTIME "
"string '%s'\n", test_no, att->str);
goto done;
}
}
failure = 0;