From 1dccc0a1fc32e5c6e6d7c63459814c4f38849e63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Fri, 20 Nov 2020 21:52:08 +0100 Subject: Fix a typo --- M2Crypto/X509.py | 10 +++++++--- 1 file 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) -- cgit v1.2.1