From: Rob Percival Date: Tue, 8 Mar 2016 19:20:22 +0000 (+0000) Subject: Makes STACK_OF(SCT)* parameter of i2d_SCT_LIST const X-Git-Tag: OpenSSL_1_1_0-pre4~133 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eac84e8127154fc4c19d1602e3f1df985ed77eff;p=oweals%2Fopenssl.git Makes STACK_OF(SCT)* parameter of i2d_SCT_LIST const Reviewed-by: Emilia Käsper Reviewed-by: Rich Salz --- 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.