Let the TLSv1_method() etc. functions return a const SSL_METHOD
[openssl.git] / ssl / s3_srvr.c
index 7cc7634bb362cbf9ef9ace70c0a16efad0f5de31..3e11cc4e84fc8eceebf8d026347f6e0430d665d3 100644 (file)
 #endif
 #include <openssl/md5.h>
 
-static SSL_METHOD *ssl3_get_server_method(int ver);
+static const SSL_METHOD *ssl3_get_server_method(int ver);
 
 #ifndef OPENSSL_NO_ECDH
 static int nid2curve_id(int nid);
 #endif
 
-static SSL_METHOD *ssl3_get_server_method(int ver)
+static const SSL_METHOD *ssl3_get_server_method(int ver)
        {
        if (ver == SSL3_VERSION)
                return(SSLv3_server_method());