diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2018-12-14 12:10:58 +0100 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2019-06-12 11:45:57 +0200 |
commit | a6dfa188204f81231a9d25cd007d0753657bcc1a (patch) | |
tree | 69b000cafd6752e7cb1b521380abd27afaa18cb2 /apps/ts.c | |
parent | Fix typo mistake on calls to SSL_ctrl in ssl.h (diff) | |
download | openssl-a6dfa188204f81231a9d25cd007d0753657bcc1a.tar.xz openssl-a6dfa188204f81231a9d25cd007d0753657bcc1a.zip |
ts: Use sha256 as default digest for TS query
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7900)
Diffstat (limited to 'apps/ts.c')
-rw-r--r-- | apps/ts.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -425,7 +425,7 @@ static TS_REQ *create_query(BIO *data_bio, const char *digest, const EVP_MD *md, ASN1_OBJECT *policy_obj = NULL; ASN1_INTEGER *nonce_asn1 = NULL; - if (md == NULL && (md = EVP_get_digestbyname("sha1")) == NULL) + if (md == NULL && (md = EVP_get_digestbyname("sha256")) == NULL) goto err; if ((ts_req = TS_REQ_new()) == NULL) goto err; |