summaryrefslogtreecommitdiffstats
path: root/test/ct_test.c
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2020-01-23 00:24:35 +0100
committerKurt Roeckx <kurt@roeckx.be>2020-02-05 22:05:30 +0100
commitb98efebeb2d4265bd6638d5947fe365500121e03 (patch)
tree0d8b4d19b257f3a8f24a66460cd047821caad18c /test/ct_test.c
parentd2e8cbfb45e8dbd24f7bb394b0141130b4c0eb98 (diff)
Create a new embeddedSCTs1 that's signed using SHA256
Reviewed-by: Viktor Dukhovni <viktor@openssl.org> GH: #10786 (cherry picked from commit 4d9e8c95544d7a86765e6a46951dbe17b801875a)
Diffstat (limited to 'test/ct_test.c')
-rw-r--r--test/ct_test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ct_test.c b/test/ct_test.c
index 78d11ca98c..4dd6a67a7c 100644
--- a/test/ct_test.c
+++ b/test/ct_test.c
@@ -63,7 +63,7 @@ static CT_TEST_FIXTURE *set_up(const char *const test_case_name)
if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
goto end;
fixture->test_case_name = test_case_name;
- fixture->epoch_time_in_ms = 1473269626000ULL; /* Sep 7 17:33:46 2016 GMT */
+ fixture->epoch_time_in_ms = 1580335307000ULL; /* Wed 29 Jan 2020 10:01:47 PM UTC */
if (!TEST_ptr(fixture->ctlog_store = CTLOG_STORE_new())
|| !TEST_int_eq(
CTLOG_STORE_load_default_file(fixture->ctlog_store), 1))
@@ -160,6 +160,10 @@ static int compare_extension_printout(X509_EXTENSION *extension,
X509V3_EXT_DEFAULT, 0)))
goto end;
+ /* Append \n because it's easier to create files that end with one. */
+ if (!TEST_true(BIO_write(text_buffer, "\n", 1)))
+ goto end;
+
/* Append \0 because we're about to use the buffer contents as a string. */
if (!TEST_true(BIO_write(text_buffer, "\0", 1)))
goto end;