raise with error message

This commit is contained in:
Aman Gupta
2015-09-23 17:12:49 -07:00
parent 4a715b8e08
commit 8edbef346a
2 changed files with 2 additions and 2 deletions

View File

@@ -223,7 +223,7 @@ when defined(ssl):
of protSSLv23:
newCTX = SSL_CTX_new(SSLv23_method()) # SSlv2,3 and TLS1 support.
of protSSLv2:
raiseSslError()
raiseSslError("SSLv2 is no longer secure and has been deprecated, use protSSLv3")
of protSSLv3:
newCTX = SSL_CTX_new(SSLv3_method())
of protTLSv1:

View File

@@ -314,7 +314,7 @@ when defined(ssl):
of protSSLv23:
newCTX = SSL_CTX_new(SSLv23_method()) # SSlv2,3 and TLS1 support.
of protSSLv2:
raiseSslError()
raiseSslError("SSLv2 is no longer secure and has been deprecated, use protSSLv3")
of protSSLv3:
newCTX = SSL_CTX_new(SSLv3_method())
of protTLSv1: