diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-11 00:00:17 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-11 00:00:17 (GMT) |
commit | 57ca873c776790fa323489b8ada169cb9cc4643f (patch) | |
tree | 1a5715475f38ce1d0ff2b67b610d44658b765f1f /Modules/socketmodule.c | |
parent | 5b6ce5a2b5e33b09a89b8998623a837c190a9155 (diff) | |
download | cpython-57ca873c776790fa323489b8ada169cb9cc4643f.zip cpython-57ca873c776790fa323489b8ada169cb9cc4643f.tar.gz cpython-57ca873c776790fa323489b8ada169cb9cc4643f.tar.bz2 |
Add a bunch of SSL error constants
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 6163180..b920543 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -3001,6 +3001,18 @@ init_socket(void) if (PyDict_SetItemString(d, "SSLType", (PyObject *)&PySSL_Type) != 0) return; + PyModule_AddIntConstant(m, "SSL_ERROR_ZERO_RETURN", + SSL_ERROR_ZERO_RETURN); + PyModule_AddIntConstant(m, "SSL_ERROR_WANT_READ", + SSL_ERROR_WANT_READ); + PyModule_AddIntConstant(m, "SSL_ERROR_WANT_WRITE", + SSL_ERROR_WANT_WRITE); + PyModule_AddIntConstant(m, "SSL_ERROR_WANT_X509_LOOKUP", + SSL_ERROR_WANT_X509_LOOKUP); + PyModule_AddIntConstant(m, "SSL_ERROR_SYSCALL", + SSL_ERROR_SYSCALL); + PyModule_AddIntConstant(m, "SSL_ERROR_SSL", + SSL_ERROR_SSL); #endif /* USE_SSL */ PySocketSock_Type.ob_type = &PyType_Type; PySocketSock_Type.tp_doc = sockettype_doc; |