Remove needless type casting.
authorRich Salz <rsalz@openssl.org>
Sat, 10 Jun 2017 19:25:56 +0000 (15:25 -0400)
committerRich Salz <rsalz@openssl.org>
Sat, 10 Jun 2017 20:03:49 +0000 (16:03 -0400)
CLA: trivial

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3627)

(cherry picked from commit a020f54c25985fc83e809daa15a3920731d39612)

crypto/x509/by_file.c

index 43a073003d8bf643c9c68116e7b9590d6aa31940..692a2037a0c95b64ceb03b77bc67dfe6cf54b493 100644 (file)
@@ -92,12 +92,12 @@ static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp,
                         long argl, char **ret)
 {
     int ok = 0;
-    char *file;
+    const char *file;
 
     switch (cmd) {
     case X509_L_FILE_LOAD:
         if (argl == X509_FILETYPE_DEFAULT) {
-            file = (char *)getenv(X509_get_default_cert_file_env());
+            file = getenv(X509_get_default_cert_file_env());
             if (file)
                 ok = (X509_load_cert_crl_file(ctx, file,
                                               X509_FILETYPE_PEM) != 0);