From 21b908a8f95a4b2e095c64876c6991020e6c099e Mon Sep 17 00:00:00 2001 From: Rob Percival Date: Tue, 8 Mar 2016 18:58:03 +0000 Subject: [PATCH] Makes SCT_get0_log return const CTLOG* MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Emilia Käsper Reviewed-by: Rich Salz --- crypto/ct/ct_locl.h | 2 +- crypto/ct/ct_sct.c | 2 +- include/openssl/ct.h | 2 +- 3 files changed, 3 insertions(+), 3 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; } diff --git a/include/openssl/ct.h b/include/openssl/ct.h index ccbb805304..80ade2577e 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. -- 2.34.1