Makes SCT_get0_log return const CTLOG*
authorRob Percival <robpercival@google.com>
Tue, 8 Mar 2016 18:58:03 +0000 (18:58 +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>
crypto/ct/ct_locl.h
crypto/ct/ct_sct.c
include/openssl/ct.h

index 95a32997556f2e06b428c5894dc62584c01265fe..3625e5039c8a2c52ab566b9e1c49fd08f208bef0 100644 (file)
@@ -126,7 +126,7 @@ struct sct_st {
     /* Where this SCT was found, e.g. certificate, OCSP response, etc. */
     sct_source_t source;
     /* The CT log that produced this SCT. */
     /* Where this SCT was found, e.g. certificate, OCSP response, etc. */
     sct_source_t source;
     /* The CT log that produced this SCT. */
-    CTLOG *log;
+    const CTLOG *log;
     /* The result of the last attempt to validate this SCT. */
     sct_validation_status_t validation_status;
 };
     /* The result of the last attempt to validate this SCT. */
     sct_validation_status_t validation_status;
 };
index 342e041b242969c88d98c1e0efadcab13afdb9db..20bb156afcd21d54fa58741fbe59adf9e43c7e64 100644 (file)
@@ -339,7 +339,7 @@ int SCT_LIST_set_source(const STACK_OF(SCT) *scts, sct_source_t source)
     return ret;
 }
 
     return ret;
 }
 
-CTLOG *SCT_get0_log(const SCT *sct)
+const CTLOG *SCT_get0_log(const SCT *sct)
 {
     return sct->log;
 }
 {
     return sct->log;
 }
index ccbb8053041f56869ab7283dcaa01f0ceb5912c4..80ade2577ef5635f1c2d02ac78299778cc40e670 100644 (file)
@@ -315,7 +315,7 @@ __owur int SCT_LIST_set_source(const STACK_OF(SCT) *scts, sct_source_t source);
 /*
  * Gets information about the log the SCT came from, if set.
  */
 /*
  * Gets information about the log the SCT came from, if set.
  */
-CTLOG *SCT_get0_log(const SCT *sct);
+const CTLOG *SCT_get0_log(const SCT *sct);
 
 /*
  * Looks up information about the log the SCT came from using a CT log store.
 
 /*
  * Looks up information about the log the SCT came from using a CT log store.