From: Rob Percival Date: Tue, 8 Mar 2016 18:58:03 +0000 (+0000) Subject: Makes SCT_get0_log return const CTLOG* X-Git-Tag: OpenSSL_1_1_0-pre4~135 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21b908a8f95a4b2e095c64876c6991020e6c099e;p=oweals%2Fopenssl.git Makes SCT_get0_log return const CTLOG* Reviewed-by: Emilia Käsper Reviewed-by: Rich Salz --- 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.