summaryrefslogtreecommitdiffstats
path: root/test/ct_test.c
diff options
context:
space:
mode:
authorRob Percival <robpercival@google.com>2016-08-05 14:17:31 +0100
committerRich Salz <rsalz@openssl.org>2016-08-15 12:56:47 -0400
commita1bb7708cec057fe07d987398015c01e6090891f (patch)
treef13433af758a9c80517a8c8bd3ffbb102d96d242 /test/ct_test.c
parenta0ef6bb6874ea362ef78e0df1435212383df4774 (diff)
Improves CTLOG_STORE setters
Changes them to have clearer ownership semantics, as suggested in https://github.com/openssl/openssl/pull/1372#discussion_r73232196. Reviewed-by: Emilia Käsper <emilia@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1408)
Diffstat (limited to 'test/ct_test.c')
-rw-r--r--test/ct_test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/ct_test.c b/test/ct_test.c
index 8cc97e25ff..6c96268e87 100644
--- a/test/ct_test.c
+++ b/test/ct_test.c
@@ -294,7 +294,8 @@ static int execute_cert_test(CT_TEST_FIXTURE fixture)
expected_sct_text[sct_text_len] = '\0';
}
- CT_POLICY_EVAL_CTX_set0_log_store(ct_policy_ctx, fixture.ctlog_store);
+ CT_POLICY_EVAL_CTX_set_shared_CTLOG_STORE(
+ ct_policy_ctx, fixture.ctlog_store);
if (fixture.certificate_file != NULL) {
int sct_extension_index;
@@ -307,7 +308,7 @@ static int execute_cert_test(CT_TEST_FIXTURE fixture)
goto end;
}
- CT_POLICY_EVAL_CTX_set0_cert(ct_policy_ctx, cert);
+ CT_POLICY_EVAL_CTX_set1_cert(ct_policy_ctx, cert);
if (fixture.issuer_file != NULL) {
issuer = load_pem_cert(fixture.certs_dir, fixture.issuer_file);
@@ -318,7 +319,7 @@ static int execute_cert_test(CT_TEST_FIXTURE fixture)
goto end;
}
- CT_POLICY_EVAL_CTX_set0_issuer(ct_policy_ctx, issuer);
+ CT_POLICY_EVAL_CTX_set1_issuer(ct_policy_ctx, issuer);
}
sct_extension_index =