From 9267c11bb5d408e43482173794f08a3c8472afba Mon Sep 17 00:00:00 2001 From: Emilia Kasper Date: Thu, 9 Jun 2016 23:09:48 +0200 Subject: Make DSA_SIG and ECDSA_SIG getters const. Reorder arguments to follow convention. Also allow r/s to be NULL in DSA_SIG_get0, similarly to ECDSA_SIG_get0. This complements GH1193 which adds non-const setters. Reviewed-by: Rich Salz --- crypto/dsa/dsa_locl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto/dsa/dsa_locl.h') diff --git a/crypto/dsa/dsa_locl.h b/crypto/dsa/dsa_locl.h index d488951a16..5f9fc1ebf8 100644 --- a/crypto/dsa/dsa_locl.h +++ b/crypto/dsa/dsa_locl.h @@ -32,6 +32,11 @@ struct dsa_st { CRYPTO_RWLOCK *lock; }; +struct DSA_SIG_st { + BIGNUM *r; + BIGNUM *s; +}; + struct dsa_method { char *name; DSA_SIG *(*dsa_do_sign) (const unsigned char *dgst, int dlen, DSA *dsa); -- cgit v1.2.3