summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1time.c4
-rw-r--r--src/regress/lib/libcrypto/asn1/rfc5280time.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/regress/lib/libcrypto/asn1/asn1time.c b/src/regress/lib/libcrypto/asn1/asn1time.c
index 6c938087f1..0334e49255 100644
--- a/src/regress/lib/libcrypto/asn1/asn1time.c
+++ b/src/regress/lib/libcrypto/asn1/asn1time.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1time.c,v 1.4 2015/10/19 16:29:22 beck Exp $ */ 1/* $OpenBSD: asn1time.c,v 1.5 2015/10/22 13:58:47 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -211,7 +211,7 @@ asn1_invtime_test(int test_no, struct asn1_time_test *att)
211 "string '%s'\n", test_no, att->str); 211 "string '%s'\n", test_no, att->str);
212 goto done; 212 goto done;
213 } 213 }
214 if (ASN1_UTCTIME_set_string(ut, att->str) != 0) { 214 if (ASN1_TIME_set_string(t, att->str) != 0) {
215 fprintf(stderr, "FAIL: test %i - successfully set TIME " 215 fprintf(stderr, "FAIL: test %i - successfully set TIME "
216 "string '%s'\n", test_no, att->str); 216 "string '%s'\n", test_no, att->str);
217 goto done; 217 goto done;
diff --git a/src/regress/lib/libcrypto/asn1/rfc5280time.c b/src/regress/lib/libcrypto/asn1/rfc5280time.c
index 7ef4929e86..eb018ed798 100644
--- a/src/regress/lib/libcrypto/asn1/rfc5280time.c
+++ b/src/regress/lib/libcrypto/asn1/rfc5280time.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rfc5280time.c,v 1.2 2015/09/30 14:11:22 beck Exp $ */ 1/* $OpenBSD: rfc5280time.c,v 1.3 2015/10/22 14:01:19 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2015 Bob Beck <beck@opebsd.org> 4 * Copyright (c) 2015 Bob Beck <beck@opebsd.org>
@@ -80,7 +80,7 @@ struct rfc5280_time_test rfc5280_invtime_tests[] = {
80 .str = "aaaaaaaaaaaaaaZ", 80 .str = "aaaaaaaaaaaaaaZ",
81 }, 81 },
82 { 82 {
83 /* Must be a UTC time per RFC 5280*/ 83 /* Must be a UTC time per RFC 5280 */
84 .str = "19700101000000Z", 84 .str = "19700101000000Z",
85 .data = "19700101000000Z", 85 .data = "19700101000000Z",
86 .time = 0, 86 .time = 0,
@@ -234,8 +234,8 @@ rfc5280_invtime_test(int test_no, struct rfc5280_time_test *att)
234 goto done; 234 goto done;
235 } 235 }
236 } 236 }
237 if (ASN1_UTCTIME_set_string(ut, att->str) != 0) { 237 if (ASN1_TIME_set_string(t, att->str) != 0) {
238 if (X509_cmp_time(ut, &now) != 0) { 238 if (X509_cmp_time(t, &now) != 0) {
239 fprintf(stderr, "FAIL: test %i - successfully parsed as UTCTIME " 239 fprintf(stderr, "FAIL: test %i - successfully parsed as UTCTIME "
240 "string '%s'\n", test_no, att->str); 240 "string '%s'\n", test_no, att->str);
241 goto done; 241 goto done;