diff options
-rw-r--r-- | apps/lib/opt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/lib/opt.c b/apps/lib/opt.c index d22a884e67..f6324ba323 100644 --- a/apps/lib/opt.c +++ b/apps/lib/opt.c @@ -373,10 +373,10 @@ int opt_cipher(const char *name, EVP_CIPHER **cipherp) */ int opt_md(const char *name, EVP_MD **mdp) { - *mdp = (EVP_MD *)EVP_get_digestbyname(name); + *mdp = EVP_MD_fetch(NULL, name, NULL); if (*mdp != NULL) return 1; - *mdp = EVP_MD_fetch(NULL, name, NULL); + *mdp = (EVP_MD *)EVP_get_digestbyname(name); if (*mdp != NULL) return 1; opt_printf_stderr("%s: Unknown option or message digest: %s\n", prog, |