Document importance of CTLOG_STORE outliving SCT if SCT_set0_log is used
authorRob Percival <robpercival@google.com>
Wed, 9 Mar 2016 15:23:58 +0000 (15:23 +0000)
committerRich Salz <rsalz@openssl.org>
Wed, 9 Mar 2016 16:34:48 +0000 (11:34 -0500)
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
include/openssl/ct.h

index 7ac8887519e30de1df98f0bf5203c47b4394ac70..b2213d18c50f51e2fbc46d8d7ca8c136a91023b7 100644 (file)
@@ -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.
  */