summaryrefslogtreecommitdiff
path: root/src/SWIG/_bio.i
diff options
context:
space:
mode:
Diffstat (limited to 'src/SWIG/_bio.i')
-rw-r--r--src/SWIG/_bio.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SWIG/_bio.i b/src/SWIG/_bio.i
index 84b76b3..6c090a4 100644
--- a/src/SWIG/_bio.i
+++ b/src/SWIG/_bio.i
@@ -246,8 +246,8 @@ PyObject *bio_set_cipher(BIO *b, EVP_CIPHER *c, PyObject *key, PyObject *iv, int
const void *kbuf, *ibuf;
Py_ssize_t klen, ilen;
- if ((PyObject_AsReadBuffer(key, &kbuf, &klen) == -1)
- || (PyObject_AsReadBuffer(iv, &ibuf, &ilen) == -1))
+ if ((m2_PyObject_AsReadBuffer(key, &kbuf, &klen) == -1)
+ || (m2_PyObject_AsReadBuffer(iv, &ibuf, &ilen) == -1))
return NULL;
BIO_set_cipher(b, (const EVP_CIPHER *)c,