aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Percival <robpercival@google.com>2016-03-08 18:58:03 +0000
committerRich Salz <rsalz@openssl.org>2016-03-09 11:34:48 -0500
commit21b908a8f95a4b2e095c64876c6991020e6c099e (patch)
treedcb250a6c19db7033125583af8c707aa1d202295
parent12d2d2818566561cbdda82a6ad1b3aab687fc020 (diff)
downloadopenssl-21b908a8f95a4b2e095c64876c6991020e6c099e.zip
openssl-21b908a8f95a4b2e095c64876c6991020e6c099e.tar.gz
openssl-21b908a8f95a4b2e095c64876c6991020e6c099e.tar.bz2
Makes SCT_get0_log return const CTLOG*
Reviewed-by: Emilia Käsper <emilia@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
-rw-r--r--crypto/ct/ct_locl.h2
-rw-r--r--crypto/ct/ct_sct.c2
-rw-r--r--include/openssl/ct.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/crypto/ct/ct_locl.h b/crypto/ct/ct_locl.h
index 95a3299..3625e50 100644
--- a/crypto/ct/ct_locl.h
+++ b/crypto/ct/ct_locl.h
@@ -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. */
- CTLOG *log;
+ const CTLOG *log;
/* The result of the last attempt to validate this SCT. */
sct_validation_status_t validation_status;
};
diff --git a/crypto/ct/ct_sct.c b/crypto/ct/ct_sct.c
index 342e041..20bb156 100644
--- a/crypto/ct/ct_sct.c
+++ b/crypto/ct/ct_sct.c
@@ -339,7 +339,7 @@ int SCT_LIST_set_source(const STACK_OF(SCT) *scts, sct_source_t source)
return ret;
}
-CTLOG *SCT_get0_log(const SCT *sct)
+const CTLOG *SCT_get0_log(const SCT *sct)
{
return sct->log;
}
diff --git a/include/openssl/ct.h b/include/openssl/ct.h
index ccbb805..80ade25 100644
--- a/include/openssl/ct.h
+++ b/include/openssl/ct.h
@@ -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.
*/
-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.