summaryrefslogtreecommitdiff
blob: c813034837d32797a2a7f426b76d3700bde923a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- src/ssl/context.c
+++ src/ssl/context.c
@@ -1095,7 +1095,11 @@
  */
 static ssl_ContextObj*
 ssl_Context_init(ssl_ContextObj *self, int i_method) {
+    #if OPENSSL_VERSION_NUMBER >= 0x10000000L
+    const SSL_METHOD *method;
+    #else
     SSL_METHOD *method;
+    #endif
 
     switch (i_method) {
         case ssl_SSLv2_METHOD: