From 4ebb342fcd90562bce999dcc0915b16f816fbbf2 Mon Sep 17 00:00:00 2001 From: Nils Larsch Date: Sun, 14 Aug 2005 21:48:33 +0000 Subject: Let the TLSv1_method() etc. functions return a const SSL_METHOD pointer and make the SSL_METHOD parameter in SSL_CTX_new, SSL_CTX_set_ssl_version and SSL_set_ssl_method const. --- ssl/t1_clnt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ssl/t1_clnt.c') diff --git a/ssl/t1_clnt.c b/ssl/t1_clnt.c index 4d1e198cdc..c87af17712 100644 --- a/ssl/t1_clnt.c +++ b/ssl/t1_clnt.c @@ -63,8 +63,8 @@ #include #include -static SSL_METHOD *tls1_get_client_method(int ver); -static SSL_METHOD *tls1_get_client_method(int ver) +static const SSL_METHOD *tls1_get_client_method(int ver); +static const SSL_METHOD *tls1_get_client_method(int ver) { if (ver == TLS1_VERSION) return(TLSv1_client_method()); -- cgit v1.2.3