Let the TLSv1_method() etc. functions return a const SSL_METHOD
[openssl.git] / ssl / s23_meth.c
index c88569d32ceb9fa16912c8f28ac18c6a314afd25..115dc11a7e49bd5fc89456a1d970196a3e1a55a4 100644 (file)
@@ -60,8 +60,8 @@
 #include <openssl/objects.h>
 #include "ssl_locl.h"
 
-static SSL_METHOD *ssl23_get_method(int ver);
-static SSL_METHOD *ssl23_get_method(int ver)
+static const SSL_METHOD *ssl23_get_method(int ver);
+static const SSL_METHOD *ssl23_get_method(int ver)
        {
        if (ver == SSL2_VERSION)
                return(SSLv2_method());