diff options
author | Rich Salz <rsalz@akamai.com> | 2021-04-16 11:29:35 -0400 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2021-04-20 10:12:29 +0200 |
commit | a78c7c0bfe56d67022ca18cfabefc73926dde0ae (patch) | |
tree | 332af9e08a75b5f628f6786300d6ee43a816e964 /apps | |
parent | 99adfa455ccd1abb73e264224c33c09e586776d2 (diff) | |
download | openssl-a78c7c0bfe56d67022ca18cfabefc73926dde0ae.tar.gz |
Flip ordering back
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/14219)
Diffstat (limited to 'apps')
-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 f6324ba323..d22a884e67 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_fetch(NULL, name, NULL); + *mdp = (EVP_MD *)EVP_get_digestbyname(name); if (*mdp != NULL) return 1; - *mdp = (EVP_MD *)EVP_get_digestbyname(name); + *mdp = EVP_MD_fetch(NULL, name, NULL); if (*mdp != NULL) return 1; opt_printf_stderr("%s: Unknown option or message digest: %s\n", prog, |