summaryrefslogtreecommitdiff
path: root/SWIG/_ec.i
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2017-09-11 16:10:52 +0200
committerMatěj Cepl <mcepl@cepl.eu>2017-09-20 17:14:13 +0200
commitdeaaabb5ec90b668c6f051fb7247d170eace5fda (patch)
treea1f84c208cf6bf962989d4a19d42fd96663f0c13 /SWIG/_ec.i
parent467b5258705360e36406cb8eb2fe98eec1d59909 (diff)
downloadm2crypto-deaaabb5ec90b668c6f051fb7247d170eace5fda.tar.gz
Fix use of 'const BIGNUM' in calls to getters and setters.
Diffstat (limited to 'SWIG/_ec.i')
-rw-r--r--SWIG/_ec.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/SWIG/_ec.i b/SWIG/_ec.i
index 9e77a74..dbfe067 100644
--- a/SWIG/_ec.i
+++ b/SWIG/_ec.i
@@ -348,13 +348,13 @@ int ec_key_write_bio_no_cipher(EC_KEY *key, BIO *f, PyObject *pyfunc) {
PyObject *ecdsa_sig_get_r(ECDSA_SIG *ecdsa_sig) {
- BIGNUM* pr;
+ const BIGNUM* pr;
ECDSA_SIG_get0(ecdsa_sig, &pr, NULL);
return bn_to_mpi(pr);
}
PyObject *ecdsa_sig_get_s(ECDSA_SIG *ecdsa_sig) {
- BIGNUM* ps;
+ const BIGNUM* ps;
ECDSA_SIG_get0(ecdsa_sig, NULL, &ps);
return bn_to_mpi(ps);
}