summaryrefslogtreecommitdiff
path: root/M2Crypto/SSL/cb.py
diff options
context:
space:
mode:
Diffstat (limited to 'M2Crypto/SSL/cb.py')
-rw-r--r--M2Crypto/SSL/cb.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/M2Crypto/SSL/cb.py b/M2Crypto/SSL/cb.py
index d10735d..47f102e 100644
--- a/M2Crypto/SSL/cb.py
+++ b/M2Crypto/SSL/cb.py
@@ -6,9 +6,8 @@ Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved."""
import sys
-from M2Crypto import m2, util
-if util.py27plus:
- from typing import Any, List # noqa
+from M2Crypto import m2
+from typing import Any # noqa
__all__ = ['unknown_issuer', 'ssl_verify_callback_stub', 'ssl_verify_callback',
'ssl_verify_callback_allow_unknown_ca', 'ssl_info_callback']
@@ -18,6 +17,7 @@ def ssl_verify_callback_stub(ssl_ctx_ptr, x509_ptr, errnum, errdepth, ok):
# Deprecated
return ok
+
unknown_issuer = [
m2.X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT,
m2.X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY,