commit | 1c198f90be456ae30bfead7baf06a6257252f9d2 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Thu Apr 14 09:46:23 2011 -0400 |
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Thu Apr 14 09:46:23 2011 -0400 |
tree | 08bfeb56dc40faa77c297ebe5eef937936fe1ffe | |
parent | 9f2e38e1b0f151a47a9a8c921b384e57f91fc52d [diff] [blame] |
Declare the SSL_METHOD const on 1.0 only - enjoy the 28 bit shift
diff --git a/OpenSSL/ssl/context.c b/OpenSSL/ssl/context.c index 16268d8..f13b447 100644 --- a/OpenSSL/ssl/context.c +++ b/OpenSSL/ssl/context.c
@@ -1118,7 +1118,10 @@ */ static ssl_ContextObj* ssl_Context_init(ssl_ContextObj *self, int i_method) { - const SSL_METHOD *method; +#if (OPENSSL_VERSION_NUMBER >> 28) == 0x01 + const +#endif + SSL_METHOD *method; switch (i_method) { case ssl_SSLv2_METHOD: