summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBosse Klykken <larkly@gmail.com>2012-07-17 15:55:00 +0200
committerSangjung Woo <sangjung.woo@samsung.com>2016-05-23 13:19:58 +0900
commit6f5a49b580f885e1d97bc4d50ee23498e46300e4 (patch)
treea92488003ac00bf292908870ba9e86818d70a849
parent60dc7fafc560768347b6c9bae9f79ff4b3901240 (diff)
downloadpython-M2Crypto-6f5a49b580f885e1d97bc4d50ee23498e46300e4.tar.gz
python-M2Crypto-6f5a49b580f885e1d97bc4d50ee23498e46300e4.tar.bz2
python-M2Crypto-6f5a49b580f885e1d97bc4d50ee23498e46300e4.zip
Don’t try to build with SSLv2 when it is not available.
The patch originally from http://stackoverflow.com/a/11072709/164233 Fixes #30 Origin: https://gitlab.com/m2crypto/m2crypto/commit/ac01b38302474920288c1a9eb63fd35fa8d1db5b Change-Id: I636400bb232c54854592db25d5d5a5aeea96a25d Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
-rw-r--r--SWIG/_ssl.i2
1 files changed, 2 insertions, 0 deletions
diff --git a/SWIG/_ssl.i b/SWIG/_ssl.i
index 2373ff2..2844da7 100644
--- a/SWIG/_ssl.i
+++ b/SWIG/_ssl.i
@@ -48,8 +48,10 @@ extern const char *SSL_alert_desc_string(int);
%rename(ssl_get_alert_desc_v) SSL_alert_desc_string_long;
extern const char *SSL_alert_desc_string_long(int);
+#ifndef OPENSSL_NO_SSL2
%rename(sslv2_method) SSLv2_method;
extern SSL_METHOD *SSLv2_method(void);
+#endif
%rename(sslv3_method) SSLv3_method;
extern SSL_METHOD *SSLv3_method(void);
%rename(sslv23_method) SSLv23_method;