Make the digest name to the verify function text instead of bytes, matching up with digest names elsewhere.
diff --git a/OpenSSL/crypto/crl.c b/OpenSSL/crypto/crl.c
index 83691fb..bc76f22 100644
--- a/OpenSSL/crypto/crl.c
+++ b/OpenSSL/crypto/crl.c
@@ -116,7 +116,10 @@
@type cert: L{X509}\n\
@param key: Used to sign CRL.\n\
@type key: L{PKey}\n\
-@return: None\n\
+@param type: The export format, either L{FILETYPE_PEM}, L{FILETYPE_ASN1}, or L{FILETYPE_TEXT}.\n\
+@param days: The number of days until the next update of this CRL.\n\
+@type days: L{int}\n\
+@return: L{str}\n\
";
static PyObject *
crypto_CRL_export(crypto_CRLObj *self, PyObject *args, PyObject *keywds) {
diff --git a/OpenSSL/crypto/crypto.c b/OpenSSL/crypto/crypto.c
index a81773d..1a122b2 100644
--- a/OpenSSL/crypto/crypto.c
+++ b/OpenSSL/crypto/crypto.c
@@ -625,7 +625,7 @@
unsigned char sig_buf[512];
if (!PyArg_ParseTuple(
- args, "O!" BYTESTRING_FMT BYTESTRING_FMT ":sign", &crypto_PKey_Type,
+ args, "O!" BYTESTRING_FMT "s:sign", &crypto_PKey_Type,
&pkey, &data, &digest_name)) {
return NULL;
}
@@ -671,7 +671,7 @@
EVP_PKEY *pkey;
#ifdef PY3
- if (!PyArg_ParseTuple(args, "O!y#yy:verify", &crypto_X509_Type, &cert, &signature, &sig_len, &data, &digest_name)) {
+ if (!PyArg_ParseTuple(args, "O!" BYTESTRING_FMT "#" BYTESTRING_FMT "s:verify", &crypto_X509_Type, &cert, &signature, &sig_len, &data, &digest_name)) {
#else
if (!PyArg_ParseTuple(args, "O!t#ss:verify", &crypto_X509_Type, &cert, &signature, &sig_len, &data, &digest_name)) {
#endif