summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-08-14 21:48:33 +0000
committerNils Larsch <nils@openssl.org>2005-08-14 21:48:33 +0000
commit4ebb342fcd90562bce999dcc0915b16f816fbbf2 (patch)
tree8fca5a4355d82d34612c249c1f9b6ae9b1ec59b9 /apps
parent8e5ef8538abfe1e4217ee3f51fafba8e743b93cd (diff)
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.
Diffstat (limited to 'apps')
-rw-r--r--apps/ciphers.c2
-rw-r--r--apps/s_client.c2
-rw-r--r--apps/s_server.c2
-rw-r--r--apps/s_time.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/ciphers.c b/apps/ciphers.c
index 43f0ac594a..f5e8700a01 100644
--- a/apps/ciphers.c
+++ b/apps/ciphers.c
@@ -90,7 +90,7 @@ int MAIN(int argc, char **argv)
SSL_CTX *ctx=NULL;
SSL *ssl=NULL;
char *ciphers=NULL;
- SSL_METHOD *meth=NULL;
+ const SSL_METHOD *meth=NULL;
STACK_OF(SSL_CIPHER) *sk;
char buf[512];
BIO *STDout=NULL;
diff --git a/apps/s_client.c b/apps/s_client.c
index b22f3196e6..6478ae321a 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -262,7 +262,7 @@ int MAIN(int argc, char **argv)
int ret=1,in_init=1,i,nbio_test=0;
int starttls_proto = 0;
int prexit = 0, vflags = 0;
- SSL_METHOD *meth=NULL;
+ const SSL_METHOD *meth=NULL;
#ifdef sock_type
#undef sock_type
#endif
diff --git a/apps/s_server.c b/apps/s_server.c
index f83dd82343..41b9736025 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -544,7 +544,7 @@ int MAIN(int argc, char *argv[])
int off=0;
int no_tmp_rsa=0,no_dhe=0,no_ecdhe=0,nocert=0;
int state=0;
- SSL_METHOD *meth=NULL;
+ const SSL_METHOD *meth=NULL;
#ifdef sock_type
#undef sock_type
#endif
diff --git a/apps/s_time.c b/apps/s_time.c
index 904945e1a8..606de54a86 100644
--- a/apps/s_time.c
+++ b/apps/s_time.c
@@ -177,7 +177,7 @@ static char *tm_cipher=NULL;
static int tm_verify = SSL_VERIFY_NONE;
static int maxTime = SECONDS;
static SSL_CTX *tm_ctx=NULL;
-static SSL_METHOD *s_time_meth=NULL;
+static const SSL_METHOD *s_time_meth=NULL;
static char *s_www_path=NULL;
static long bytes_read=0;
static int st_bugs=0;