From 9ddff1e83c4240b52c0e920f0372d3fb972362c2 Mon Sep 17 00:00:00 2001 From: Rob Percival Date: Wed, 9 Mar 2016 15:23:58 +0000 Subject: [PATCH] Document importance of CTLOG_STORE outliving SCT if SCT_set0_log is used MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Emilia Käsper Reviewed-by: Rich Salz --- include/openssl/ct.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/openssl/ct.h b/include/openssl/ct.h index 7ac8887519..b2213d18c5 100644 --- a/include/openssl/ct.h +++ b/include/openssl/ct.h @@ -313,6 +313,8 @@ const CTLOG *SCT_get0_log(const SCT *sct); /* * Looks up information about the log the SCT came from using a CT log store. + * The CTLOG_STORE must outlive the SCT, as ownership of the CTLOG remains with + * the CTLOG_STORE. * Returns 1 if information about the log is found, 0 otherwise. * The information can be accessed via SCT_get0_log. */ -- 2.25.1