summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2022-01-29 21:02:28 +0100
committerGitHub <noreply@github.com>2022-01-29 12:02:28 -0800
commit41ceefb0f81d6ac056e9d84e47de57191e067b8e (patch)
treed16ae9689db31c7a0b544d044838ccca5e7816c0
parentfb26edde0aa27670c7bb24c0daeb05516e83d7b0 (diff)
downloadpyopenssl-41ceefb0f81d6ac056e9d84e47de57191e067b8e.tar.gz
Docs: Fix param type for methods where digest is used (#1078)
-rw-r--r--src/OpenSSL/crypto.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py
index f6d90e1..a54fd54 100644
--- a/src/OpenSSL/crypto.py
+++ b/src/OpenSSL/crypto.py
@@ -1053,8 +1053,8 @@ class X509Req(object):
:param pkey: The key pair to sign with.
:type pkey: :py:class:`PKey`
:param digest: The name of the message digest to use for the signature,
- e.g. :py:data:`b"sha256"`.
- :type digest: :py:class:`bytes`
+ e.g. :py:data:`"sha256"`.
+ :type digest: :py:class:`str`
:return: ``None``
"""
if pkey._only_public:
@@ -1209,7 +1209,7 @@ class X509(object):
:type pkey: :py:class:`PKey`
:param digest: The name of the message digest to use.
- :type digest: :py:class:`bytes`
+ :type digest: :py:class:`str`
:return: :py:data:`None`
"""
@@ -1251,7 +1251,7 @@ class X509(object):
Return the digest of the X509 object.
:param digest_name: The name of the digest algorithm to use.
- :type digest_name: :py:class:`bytes`
+ :type digest_name: :py:class:`str`
:return: The digest of the object, formatted as
:py:const:`b":"`-delimited hex pairs.
@@ -2718,7 +2718,7 @@ class NetscapeSPKI(object):
:type pkey: :py:class:`PKey`
:param digest: The message digest to use.
- :type digest: :py:class:`bytes`
+ :type digest: :py:class:`str`
:return: ``None``
"""