diff options
author | Nils Larsch <nils@openssl.org> | 2005-04-07 22:48:33 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2005-04-07 22:48:33 +0000 |
commit | eb3eab20a86e3d06e949880e2a036a026dd1da91 (patch) | |
tree | 1471266584047b4be37365b5f8bbd93ac3205d7b /apps/s_server.c | |
parent | 4848cbf1cffcd00565c4191319030bef52cc9b55 (diff) |
const fixes
Diffstat (limited to 'apps/s_server.c')
-rw-r--r-- | apps/s_server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index 7e43b1afe4..986c1221e3 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -180,7 +180,7 @@ static void print_stats(BIO *bp,SSL_CTX *ctx); static int generate_session_id(const SSL *ssl, unsigned char *id, unsigned int *id_len); #ifndef OPENSSL_NO_DH -static DH *load_dh_param(char *dhfile); +static DH *load_dh_param(const char *dhfile); static DH *get_dh512(void); #endif @@ -1465,12 +1465,12 @@ static int init_ssl_connection(SSL *con) } #ifndef OPENSSL_NO_DH -static DH *load_dh_param(char *dhfile) +static DH *load_dh_param(const char *dhfile) { DH *ret=NULL; BIO *bio; - if ((bio=BIO_new_file(dhfile,"r")) == NULL) + if ((bio=BIO_new_file((char *)dhfile,"r")) == NULL) goto err; ret=PEM_read_bio_DHparams(bio,NULL,NULL,NULL); err: |