Lines Matching +full:2020 +full:- +full:12 +full:- +full:10
2 * Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved.
24 /* -1 if asn1_time <= cmp_time, 1 if asn1_time > cmp_time, 0 if error. */
30 /* 0 for check-only mode, 1 for set-string mode */
38 * But they can still be ignored explicitly in set-string mode by:
39 * setting -1 to expected_type and setting NULL to expected_string.
41 * It's useful in a case of set-string mode but the expected result
50 * those time-compare-cases, so we may not test it again.
56 "20170217180105Z", 0, 1, -1, NULL,
60 "20170229180105Z", 0, 0, -1, NULL,
64 "20160229180105Z", 0, 1, -1, NULL,
68 "201702171801Z", 0, 0, -1, NULL,
72 "20170217180105.001Z", 0, 0, -1, NULL,
76 "20170217180105+0800", 0, 0, -1, NULL,
80 "201702171801Z", 1, 0, -1, NULL,
84 "20170217180105.001Z", 1, 0, -1, NULL,
88 "20170217180105+0800", 1, 0, -1, NULL,
105 "1702171801Z", 0, 0, -1, NULL,
109 "050229180101Z", 0, 0, -1, NULL,
113 "040229180101Z", 0, 1, -1, NULL,
117 "170217180154+0800", 0, 0, -1, NULL,
121 "1702171801Z", 1, 0, -1, NULL,
125 "170217180154+0800", 1, 0, -1, NULL,
141 1487354514, -1,
146 1487354515, -1,
157 1487354514, -1,
162 1487354515, -1,
173 919274514, -1,
178 919274515, -1,
227 /* Non-digits. */
231 /* Non-digits, UTCTime. */
283 asn1_before = ASN1_TIME_adj(NULL, now, -1, 0); in test_x509_cmp_time_current()
287 if (!TEST_int_eq(cmp_result, -1)) in test_x509_cmp_time_current()
315 always_0 ? 0 : -1) in test_X509_cmp_timeframe_vpm()
327 ASN1_TIME *asn1_before = ASN1_TIME_adj(NULL, now, -1, 0); in test_X509_cmp_timeframe()
358 /* set-string mode */ in test_x509_time()
374 /* if t is not NULL but expected_type is ignored(-1), it is an 'OK' case */ in test_x509_time()
375 if (t != NULL && x509_format_tests[idx].expected_type != -1) { in test_x509_time()
376 if (!TEST_int_eq(t->type, x509_format_tests[idx].expected_type)) { in test_x509_time()
378 idx, x509_format_tests[idx].expected_type, t->type); in test_x509_time()
385 if (!TEST_mem_eq((const char *)t->data, t->length, in test_x509_time()
389 idx, x509_format_tests[idx].expected_string, t->length, in test_x509_time()
390 t->data); in test_x509_time()
410 { 1900, 12, 31, 364, 1 },
413 { 1999, 1, 10, 9, 0 },
414 { 1999, 12, 31, 364, 5 },
419 { 2000, 12, 31, 365, 0 },
425 { 2008, 12, 31, 365, 3 },
430 { 2011, 12, 31, 364, 6 },
441 { 2019, 10, 2, 274, 3 },
443 { 2019, 12, 2, 335, 1 },
444 { 2020, 1, 2, 1, 4 },
445 { 2020, 2, 2, 32, 0 },
446 { 2020, 3, 2, 61, 1 },
447 { 2020, 4, 2, 92, 4 },
448 { 2020, 5, 2, 122, 6 },
449 { 2020, 6, 2, 153, 2 },
450 { 2020, 7, 2, 183, 4 },
451 { 2020, 8, 2, 214, 0 },
452 { 2020, 9, 2, 245, 3 },
453 { 2020, 10, 2, 275, 5 },
454 { 2020, 11, 2, 306, 1 },
455 { 2020, 12, 2, 336, 3 }
482 { { sizeof(s) - 1, t, (unsigned char*)s, 0 }, e }
517 "2017-07-31 22:20:50Z"),
520 "2017-07-31 22:20:00Z"),
523 "2017-07-31 22:20:50.123Z"),
526 "2017-07-31 22:20:50.1Z"),
532 "2017-07-31 22:20:50Z"),
535 "2017-07-31 22:20:00Z"),