aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Percival <robpercival@google.com>2016-03-09 15:23:58 +0000
committerRich Salz <rsalz@openssl.org>2016-03-09 11:34:48 -0500
commit9ddff1e83c4240b52c0e920f0372d3fb972362c2 (patch)
treedef0cbefab511048cfff5d4b5e86b91a40b708a4
parentdc919c6935e263eb8dcb22488435063ed09f2f95 (diff)
downloadopenssl-9ddff1e83c4240b52c0e920f0372d3fb972362c2.zip
openssl-9ddff1e83c4240b52c0e920f0372d3fb972362c2.tar.gz
openssl-9ddff1e83c4240b52c0e920f0372d3fb972362c2.tar.bz2
Document importance of CTLOG_STORE outliving SCT if SCT_set0_log is used
Reviewed-by: Emilia Käsper <emilia@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
-rw-r--r--include/openssl/ct.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/openssl/ct.h b/include/openssl/ct.h
index 7ac8887..b2213d1 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.
*/