From 99cccf3643f96892196578cb599ca91661a7128c Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 20 Mar 2016 18:58:19 +0000 Subject: [PATCH] constify DSA_SIG_get0() Reviewed-by: Rich Salz --- crypto/dsa/dsa_asn1.c | 2 +- doc/crypto/DSA_SIG_new.pod | 2 +- include/openssl/dsa.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/dsa/dsa_asn1.c b/crypto/dsa/dsa_asn1.c index b2ac1e6f03..c338b5f3a8 100644 --- a/crypto/dsa/dsa_asn1.c +++ b/crypto/dsa/dsa_asn1.c @@ -75,7 +75,7 @@ ASN1_SEQUENCE(DSA_SIG) = { IMPLEMENT_ASN1_FUNCTIONS_const(DSA_SIG) -void DSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, DSA_SIG *sig) +void DSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, const DSA_SIG *sig) { *pr = sig->r; *ps = sig->s; diff --git a/doc/crypto/DSA_SIG_new.pod b/doc/crypto/DSA_SIG_new.pod index 2d9e2729ed..82cff7d4c1 100644 --- a/doc/crypto/DSA_SIG_new.pod +++ b/doc/crypto/DSA_SIG_new.pod @@ -10,7 +10,7 @@ DSA_SIG_new, DSA_SIG_free - allocate and free DSA signature objects DSA_SIG *DSA_SIG_new(void); void DSA_SIG_free(DSA_SIG *a); - void DSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, DSA_SIG *sig); + void DSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, const DSA_SIG *sig); =head1 DESCRIPTION diff --git a/include/openssl/dsa.h b/include/openssl/dsa.h index 3346853152..865344932f 100644 --- a/include/openssl/dsa.h +++ b/include/openssl/dsa.h @@ -184,7 +184,7 @@ DSA_SIG *DSA_SIG_new(void); void DSA_SIG_free(DSA_SIG *a); int i2d_DSA_SIG(const DSA_SIG *a, unsigned char **pp); DSA_SIG *d2i_DSA_SIG(DSA_SIG **v, const unsigned char **pp, long length); -void DSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, DSA_SIG *sig); +void DSA_SIG_get0(BIGNUM **pr, BIGNUM **ps, const DSA_SIG *sig); DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); int DSA_do_verify(const unsigned char *dgst, int dgst_len, -- 2.34.1