summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Modules/_hashopenssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
index eab190b756..9ee1b3db27 100644
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -158,7 +158,7 @@ EVP_hexdigest(EVPobject *self, PyObject *unused)
"object supporting the buffer API required"); \
return NULL; \
} \
- if (PyObject_GetBuffer((obj), (viewp), PyBUF_SIMPLE) == -1) { \
+ if (PyObject_GetBuffer((obj), (viewp), PyBUF_CHARACTER) == -1) { \
return NULL; \
} \
if ((viewp)->ndim > 1) { \