diff options
author | Rob Percival <robpercival@google.com> | 2016-03-08 19:09:06 +0000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-09 11:34:48 -0500 |
commit | 14db9bbd710ac8aaaee89280e9b5ffb5afedb712 (patch) | |
tree | fcbb23bd46bfe0cdf80481f2c77af37512c7429b /crypto/ct | |
parent | 21b908a8f95a4b2e095c64876c6991020e6c099e (diff) |
Removes SCT_LIST_set_source and SCT_LIST_set0_logs
Both of these functions can easily be implemented by callers instead.
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_sct.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/crypto/ct/ct_sct.c b/crypto/ct/ct_sct.c index 20bb156afc..f83e155281 100644 --- a/crypto/ct/ct_sct.c +++ b/crypto/ct/ct_sct.c @@ -327,18 +327,6 @@ int SCT_set_source(SCT *sct, sct_source_t source) } } -int SCT_LIST_set_source(const STACK_OF(SCT) *scts, sct_source_t source) -{ - int i, ret = 0; - - for (i = 0; i < sk_SCT_num(scts); ++i) { - if (SCT_set_source(sk_SCT_value(scts, i), source)) - ++ret; - } - - return ret; -} - const CTLOG *SCT_get0_log(const SCT *sct) { return sct->log; @@ -351,23 +339,6 @@ int SCT_set0_log(SCT *sct, const CTLOG_STORE *ct_logs) return sct->log != NULL; } -int SCT_LIST_set0_logs(STACK_OF(SCT) *sct_list, const CTLOG_STORE *ct_logs) -{ - int sct_logs_found = 0; - int i; - - for (i = 0; i < sk_SCT_num(sct_list); ++i) { - SCT *sct = sk_SCT_value(sct_list, i); - - if (sct->log == NULL) - SCT_set0_log(sct, ct_logs); - if (sct->log != NULL) - ++sct_logs_found; - } - - return sct_logs_found; -} - sct_validation_status_t SCT_get_validation_status(const SCT *sct) { return sct->validation_status; |