"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/ct_test.c" between
openssl-1.1.1o.tar.gz and openssl-1.1.1p.tar.gz

About: OpenSSL is a toolkit implementing the Transport Layer Security (TLS) protocols (including SSLv3) as well as a full-strength general purpose cryptographic library. Long Term Support (LTS) version (includes support for TLSv1.3).

ct_test.c  (openssl-1.1.1o):ct_test.c  (openssl-1.1.1p)
/* /*
* Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved. * Copyright 2016-2022 The OpenSSL Project Authors. All Rights Reserved.
* *
* Licensed under the OpenSSL license (the "License"). You may not use * Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy * this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at * in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html * https://www.openssl.org/source/license.html
*/ */
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
skipping to change at line 66 skipping to change at line 66
int test_validity; int test_validity;
} CT_TEST_FIXTURE; } CT_TEST_FIXTURE;
static CT_TEST_FIXTURE *set_up(const char *const test_case_name) static CT_TEST_FIXTURE *set_up(const char *const test_case_name)
{ {
CT_TEST_FIXTURE *fixture = NULL; CT_TEST_FIXTURE *fixture = NULL;
if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture)))) if (!TEST_ptr(fixture = OPENSSL_zalloc(sizeof(*fixture))))
goto end; goto end;
fixture->test_case_name = test_case_name; 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()) if (!TEST_ptr(fixture->ctlog_store = CTLOG_STORE_new())
|| !TEST_int_eq( || !TEST_int_eq(
CTLOG_STORE_load_default_file(fixture->ctlog_store), 1)) CTLOG_STORE_load_default_file(fixture->ctlog_store), 1))
goto end; goto end;
return fixture; return fixture;
end: end:
if (fixture != NULL) if (fixture != NULL)
CTLOG_STORE_free(fixture->ctlog_store); CTLOG_STORE_free(fixture->ctlog_store);
OPENSSL_free(fixture); OPENSSL_free(fixture);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)