mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
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)
This commit is contained in:
parent
99adfa455c
commit
a78c7c0bfe
@ -373,10 +373,10 @@ int opt_cipher(const char *name, EVP_CIPHER **cipherp)
|
|||||||
*/
|
*/
|
||||||
int opt_md(const char *name, EVP_MD **mdp)
|
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)
|
if (*mdp != NULL)
|
||||||
return 1;
|
return 1;
|
||||||
*mdp = (EVP_MD *)EVP_get_digestbyname(name);
|
*mdp = EVP_MD_fetch(NULL, name, NULL);
|
||||||
if (*mdp != NULL)
|
if (*mdp != NULL)
|
||||||
return 1;
|
return 1;
|
||||||
opt_printf_stderr("%s: Unknown option or message digest: %s\n", prog,
|
opt_printf_stderr("%s: Unknown option or message digest: %s\n", prog,
|
||||||
|
Loading…
Reference in New Issue
Block a user