Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7bcf9a55
Commit
7bcf9a55
authored
Mar 04, 2015
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use _import_symbols to import VERIFY_* constants
parent
c3d9c5ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Lib/ssl.py
Lib/ssl.py
+1
-2
No files found.
Lib/ssl.py
View file @
7bcf9a55
...
...
@@ -103,8 +103,6 @@ from _ssl import (
SSLSyscallError
,
SSLEOFError
,
)
from
_ssl
import
CERT_NONE
,
CERT_OPTIONAL
,
CERT_REQUIRED
from
_ssl
import
(
VERIFY_DEFAULT
,
VERIFY_CRL_CHECK_LEAF
,
VERIFY_CRL_CHECK_CHAIN
,
VERIFY_X509_STRICT
)
from
_ssl
import
txt2obj
as
_txt2obj
,
nid2obj
as
_nid2obj
from
_ssl
import
RAND_status
,
RAND_add
,
RAND_bytes
,
RAND_pseudo_bytes
try
:
...
...
@@ -122,6 +120,7 @@ _import_symbols('OP_')
_import_symbols
(
'ALERT_DESCRIPTION_'
)
_import_symbols
(
'SSL_ERROR_'
)
_import_symbols
(
'PROTOCOL_'
)
_import_symbols
(
'VERIFY_'
)
from
_ssl
import
HAS_SNI
,
HAS_ECDH
,
HAS_NPN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment