Return to dgst.c CVS log | Up to [local] / src / usr.bin / openssl |
version 1.12, 2018/02/07 05:47:55 | version 1.13, 2019/01/18 23:33:57 | ||
---|---|---|---|
|
|
||
/* we use md as a filter, reading from 'in' */ | /* we use md as a filter, reading from 'in' */ | ||
else { | else { | ||
if (md == NULL) | if (md == NULL) | ||
md = EVP_md5(); | md = EVP_sha256(); | ||
if (!BIO_set_md(bmd, md)) { | if (!BIO_set_md(bmd, md)) { | ||
BIO_printf(bio_err, "Error setting digest %s\n", pname); | BIO_printf(bio_err, "Error setting digest %s\n", pname); | ||
ERR_print_errors(bio_err); | ERR_print_errors(bio_err); |