From 8359b57f27bbc320c3c08035917d829b303ea850 Mon Sep 17 00:00:00 2001 From: Rob Percival Date: Thu, 10 Mar 2016 18:17:23 +0000 Subject: check reviewer --reviewer=emilia Remove 'log' field from SCT and related accessors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In order to still have access to an SCT's CTLOG when calling SCT_print, SSL_CTX_get0_ctlog_store has been added. Improved documentation for some CT functions in openssl/ssl.h. Reviewed-by: Emilia Käsper Reviewed-by: Rich Salz --- ssl/ssl_lib.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ssl') diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index dd39654386..cec3fc27f2 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -4156,4 +4156,15 @@ int SSL_CTX_set_ctlog_list_file(SSL_CTX *ctx, const char *path) return CTLOG_STORE_load_file(ctx->ctlog_store, path); } +void SSL_CTX_set0_ctlog_store(SSL_CTX *ctx, CTLOG_STORE *logs) +{ + CTLOG_STORE_free(ctx->ctlog_store); + ctx->ctlog_store = logs; +} + +const CTLOG_STORE *SSL_CTX_get0_ctlog_store(const SSL_CTX *ctx) +{ + return ctx->ctlog_store; +} + #endif -- cgit v1.2.3