summaryrefslogtreecommitdiffstats
path: root/crypto/dsa/dsa_locl.h
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2016-06-09 23:09:48 +0200
committerEmilia Kasper <emilia@openssl.org>2016-06-20 14:58:36 +0200
commit9267c11bb5d408e43482173794f08a3c8472afba (patch)
tree172336307a646ab33854a51627192f3307eb6545 /crypto/dsa/dsa_locl.h
parentb73cfb137e596f3e4396fbc5502ace3ff17cbaed (diff)
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 <rsalz@openssl.org>
Diffstat (limited to 'crypto/dsa/dsa_locl.h')
-rw-r--r--crypto/dsa/dsa_locl.h5
1 files changed, 5 insertions, 0 deletions
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);