summaryrefslogtreecommitdiffstats
path: root/crypto/ct
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 /crypto/ct
parent12d2d2818566561cbdda82a6ad1b3aab687fc020 (diff)
Makes SCT_get0_log return const CTLOG*
Reviewed-by: Emilia Käsper <emilia@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/ct')
-rw-r--r--crypto/ct/ct_locl.h2
-rw-r--r--crypto/ct/ct_sct.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ct/ct_locl.h b/crypto/ct/ct_locl.h
index 95a3299755..3625e5039c 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 342e041b24..20bb156afc 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;
}