diff options
author | Rich Salz <rsalz@openssl.org> | 2017-06-10 15:25:56 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-06-10 16:03:49 -0400 |
commit | 55abd566ea02cd21f7bff60db41f97bddad31496 (patch) | |
tree | bb2b122074f9973c061e49e4b5e7729643c431ec /crypto/x509 | |
parent | ffb1065e8b658cfb50e50428c92c77051d1f2308 (diff) |
Remove needless type casting.
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)
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/by_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/by_file.c b/crypto/x509/by_file.c index 43a073003d..692a2037a0 100644 --- a/crypto/x509/by_file.c +++ b/crypto/x509/by_file.c @@ -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); |