summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/asn1/asn1time.c
diff options
context:
space:
mode:
authorjsing <>2015-10-22 14:01:19 +0000
committerjsing <>2015-10-22 14:01:19 +0000
commitdba45550e6e6a501d95de421da1168ea0bc574a0 (patch)
treec45526a8e20800901b515c1425eca75b55d8ce05 /src/regress/lib/libcrypto/asn1/asn1time.c
parent6f9e896881bfb4186fa07fea2fc39c32b2b6e75d (diff)
downloadopenbsd-dba45550e6e6a501d95de421da1168ea0bc574a0.tar.gz
openbsd-dba45550e6e6a501d95de421da1168ea0bc574a0.tar.bz2
openbsd-dba45550e6e6a501d95de421da1168ea0bc574a0.zip
Fix case where we wanted to test ASN1_TIME_set_string() but were testing
ASN1_UTCTIME_set_string() twice instead.
Diffstat (limited to 'src/regress/lib/libcrypto/asn1/asn1time.c')
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1time.c4
1 files changed, 2 insertions, 2 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;