From eac84e8127154fc4c19d1602e3f1df985ed77eff Mon Sep 17 00:00:00 2001 From: Rob Percival Date: Tue, 8 Mar 2016 19:20:22 +0000 Subject: [PATCH] Makes STACK_OF(SCT)* parameter of i2d_SCT_LIST const 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_oct.c | 2 +- include/openssl/ct.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/ct/ct_oct.c b/crypto/ct/ct_oct.c index d9fa68afa8..620edab038 100644 --- a/crypto/ct/ct_oct.c +++ b/crypto/ct/ct_oct.c @@ -442,7 +442,7 @@ STACK_OF(SCT) *d2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp, return sk; } -int i2d_SCT_LIST(STACK_OF(SCT) *a, unsigned char **out) +int i2d_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **out) { ASN1_OCTET_STRING oct; int len; diff --git a/include/openssl/ct.h b/include/openssl/ct.h index 98b2231400..7ac8887519 100644 --- a/include/openssl/ct.h +++ b/include/openssl/ct.h @@ -414,7 +414,7 @@ STACK_OF(SCT) *o2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp, * Returns < 0 on error, >= 0 indicating bytes written (or would have been) * on success. */ -__owur int i2d_SCT_LIST(STACK_OF(SCT) *a, unsigned char **pp); +__owur int i2d_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp); /* * Parses an SCT list in DER format and returns it. -- 2.25.1