summaryrefslogtreecommitdiffstats
path: root/apps/ts.c
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2018-12-14 12:10:58 +0100
committerTomas Mraz <tmraz@fedoraproject.org>2019-06-12 11:45:57 +0200
commita6dfa188204f81231a9d25cd007d0753657bcc1a (patch)
tree69b000cafd6752e7cb1b521380abd27afaa18cb2 /apps/ts.c
parentFix typo mistake on calls to SSL_ctrl in ssl.h (diff)
downloadopenssl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/ts.c b/apps/ts.c
index 63c5210183..4ef8a72eef 100644
--- a/apps/ts.c
+++ b/apps/ts.c
@@ -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;