const fixes

This commit is contained in:
Nils Larsch 2005-04-07 22:48:33 +00:00
parent 4848cbf1cf
commit eb3eab20a8
2 changed files with 4 additions and 4 deletions

View File

@ -344,7 +344,7 @@ int MAIN(int, char **);
int MAIN(int argc, char **argv) int MAIN(int argc, char **argv)
{ {
int ret=1,i; int ret=1,i;
char **pp; const char **pp;
int verbose=0, list_cap=0, test_avail=0, test_avail_noise = 0; int verbose=0, list_cap=0, test_avail=0, test_avail_noise = 0;
ENGINE *e; ENGINE *e;
STACK *engines = sk_new_null(); STACK *engines = sk_new_null();

View File

@ -180,7 +180,7 @@ static void print_stats(BIO *bp,SSL_CTX *ctx);
static int generate_session_id(const SSL *ssl, unsigned char *id, static int generate_session_id(const SSL *ssl, unsigned char *id,
unsigned int *id_len); unsigned int *id_len);
#ifndef OPENSSL_NO_DH #ifndef OPENSSL_NO_DH
static DH *load_dh_param(char *dhfile); static DH *load_dh_param(const char *dhfile);
static DH *get_dh512(void); static DH *get_dh512(void);
#endif #endif
@ -1465,12 +1465,12 @@ static int init_ssl_connection(SSL *con)
} }
#ifndef OPENSSL_NO_DH #ifndef OPENSSL_NO_DH
static DH *load_dh_param(char *dhfile) static DH *load_dh_param(const char *dhfile)
{ {
DH *ret=NULL; DH *ret=NULL;
BIO *bio; BIO *bio;
if ((bio=BIO_new_file(dhfile,"r")) == NULL) if ((bio=BIO_new_file((char *)dhfile,"r")) == NULL)
goto err; goto err;
ret=PEM_read_bio_DHparams(bio,NULL,NULL,NULL); ret=PEM_read_bio_DHparams(bio,NULL,NULL,NULL);
err: err: