[openssl-commits] [openssl] OpenSSL_1_1_0-stable update

Rich Salz rsalz at openssl.org
Sat Jun 10 20:03:38 UTC 2017


The branch OpenSSL_1_1_0-stable has been updated
       via  293991d558148c4c7dae0172e145f15c79e4119e (commit)
      from  bc4ce5e8b66e10be23b40b162522df8df5081460 (commit)


- Log -----------------------------------------------------------------
commit 293991d558148c4c7dae0172e145f15c79e4119e
Author: Rich Salz <rsalz at openssl.org>
Date:   Sat Jun 10 15:25:56 2017 -0400

    Remove needless type casting.
    
    CLA: trivial
    
    Reviewed-by: Kurt Roeckx <kurt at openssl.org>
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/3627)
    
    (cherry picked from commit a020f54c25985fc83e809daa15a3920731d39612)

-----------------------------------------------------------------------

Summary of changes:
 crypto/x509/by_file.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/x509/by_file.c b/crypto/x509/by_file.c
index 4376bed..8aa2d8e 100644
--- a/crypto/x509/by_file.c
+++ b/crypto/x509/by_file.c
@@ -42,12 +42,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);


More information about the openssl-commits mailing list