summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2020-11-20 21:52:08 +0100
committerMatěj Cepl <mcepl@cepl.eu>2020-11-20 21:52:08 +0100
commit1dccc0a1fc32e5c6e6d7c63459814c4f38849e63 (patch)
treee7040702355ee7e11f7206b83057653d755c9244
parent18937a0b96119f06ac291fa93fdcb5d388d4b88d (diff)
downloadm2crypto-1dccc0a1fc32e5c6e6d7c63459814c4f38849e63.tar.gz
Fix a typo
-rw-r--r--M2Crypto/X509.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/M2Crypto/X509.py b/M2Crypto/X509.py
index ea8a7c1..20beb4a 100644
--- a/M2Crypto/X509.py
+++ b/M2Crypto/X509.py
@@ -1023,13 +1023,17 @@ class X509_Store(object):
add_cert = add_x509
def set_flags(self, flags):
+ # type: (int) -> int
"""
Set the verification flags for the X509Store
Wrapper over OpenSSL X509_STORE_set_flags()
- :param flags: `VERIFICATION FLAGS` section of the X509_VERIFY_PARAM_set_flags man page has a complete description
- of values the flags parameter can take.
- Their M2Crypto equivalent is transformed following this pattern: "X509_V_FLAG_XYZ" -> lowervase("VERIFY_XYZ")
+ :param flags: `VERIFICATION FLAGS` section of the
+ X509_VERIFY_PARAM_set_flags man page has
+ a complete description of values the flags
+ parameter can take.
+ Their M2Crypto equivalent is transformed following
+ the pattern: "X509_V_FLAG_XYZ" -> lowercase("VERIFY_XYZ")
"""
return m2.x509_store_set_flags(self.store, flags)