const fixes
authorNils Larsch <nils@openssl.org>
Thu, 7 Apr 2005 22:48:33 +0000 (22:48 +0000)
committerNils Larsch <nils@openssl.org>
Thu, 7 Apr 2005 22:48:33 +0000 (22:48 +0000)
apps/engine.c
apps/s_server.c

index f1585bb7385bc1a05bb80af891437d8193ad8bdd..8f7b389f40e3939025b9264206378dbef474a581 100644 (file)
@@ -344,7 +344,7 @@ int MAIN(int, char **);
 int MAIN(int argc, char **argv)
        {
        int ret=1,i;
-       char **pp;
+       const char **pp;
        int verbose=0, list_cap=0, test_avail=0, test_avail_noise = 0;
        ENGINE *e;
        STACK *engines = sk_new_null();
index 7e43b1afe42400da9a099fe5b0921bcf8d103a35..986c1221e3c08c650d0a9905c4ebf36a911c9c89 100644 (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,
                                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: