disable SSLv2_method for ubuntu

This commit is contained in:
Araq 2012-12-03 21:48:12 +01:00
commit 0834224070
3 changed files with 13 additions and 9 deletions

View file

@ -258,7 +258,10 @@ when defined(ssl):
of protSSLv23:
newCTX = SSL_CTX_new(SSLv23_method()) # SSlv2,3 and TLS1 support.
of protSSLv2:
newCTX = SSL_CTX_new(SSLv2_method())
when not defined(linux):
newCTX = SSL_CTX_new(SSLv2_method())
else:
SSLError()
of protSSLv3:
newCTX = SSL_CTX_new(SSLv3_method())
of protTLSv1: