Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
f76386ee
Commit
f76386ee
authored
Sep 15, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ssl: import more constants from the standard ssl module
parent
d829f591
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
24 deletions
+25
-24
gevent/ssl.py
gevent/ssl.py
+25
-24
No files found.
gevent/ssl.py
View file @
f76386ee
...
...
@@ -23,36 +23,37 @@ import errno
from
gevent.socket
import
socket
,
_fileobject
,
wait_read
,
wait_write
,
timeout_default
from
gevent.socket
import
error
as
socket_error
,
EBADF
__implements__
=
[
'SSLObject'
,
'wrap_socket'
,
'get_server_certificate'
,
'sslwrap_simple'
]
__all__
=
[
'SSLError'
,
'CERT_NONE'
,
'CERT_OPTIONAL'
,
'CERT_REQUIRED'
,
'PROTOCOL_SSLv2'
,
'PROTOCOL_SSLv3'
,
'PROTOCOL_SSLv23'
,
'PROTOCOL_TLSv1'
,
'PROTOCOL_NOSSLv2'
,
'RAND_status'
,
'RAND_egd'
,
'RAND_add'
,
'SSL_ERROR_ZERO_RETURN'
,
'SSL_ERROR_WANT_READ'
,
'SSL_ERROR_WANT_WRITE'
,
'SSL_ERROR_WANT_X509_LOOKUP'
,
'SSL_ERROR_SYSCALL'
,
'SSL_ERROR_SSL'
,
'SSL_ERROR_WANT_CONNECT'
,
'SSL_ERROR_EOF'
,
'SSL_ERROR_INVALID_ERROR_CODE'
,
'cert_time_to_seconds'
,
'DER_cert_to_PEM_cert'
,
'PEM_cert_to_DER_cert'
,
'get_protocol_name'
]
for
name
in
__all__
:
__implements__
=
[
'SSLSocket'
,
'wrap_socket'
,
'get_server_certificate'
,
'sslwrap_simple'
]
__imports__
=
[
'SSLError'
,
'RAND_status'
,
'RAND_egd'
,
'RAND_add'
,
'cert_time_to_seconds'
,
'get_protocol_name'
,
'DER_cert_to_PEM_cert'
,
'PEM_cert_to_DER_cert'
]
for
name
in
__imports__
[:]:
try
:
value
=
getattr
(
__ssl__
,
name
)
globals
()[
name
]
=
value
except
AttributeError
:
continue
globals
()[
name
]
=
value
__imports__
.
remove
(
name
)
for
name
in
dir
(
__ssl__
):
if
not
name
.
startswith
(
'_'
):
value
=
getattr
(
__ssl__
,
name
)
if
isinstance
(
value
,
(
int
,
long
,
basestring
,
tuple
)):
globals
()[
name
]
=
value
__imports__
.
append
(
name
)
del
name
,
value
__all__
+=
__implemen
ts__
__all__
=
__implements__
+
__impor
ts__
class
SSLSocket
(
socket
):
...
...
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