summaryrefslogtreecommitdiff
path: root/SWIG/_ec.i
diff options
context:
space:
mode:
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);
}