Blame SOURCES/openssl-1.1.1-ts-sha256-default.patch

3a273b
diff --git a/apps/ts.c b/apps/ts.c
3a273b
index 63c5210183..4ef8a72eef 100644
3a273b
--- a/apps/ts.c
3a273b
+++ b/apps/ts.c
3a273b
@@ -425,7 +425,7 @@ static TS_REQ *create_query(BIO *data_bio, const char *digest, const EVP_MD *md,
3a273b
     ASN1_OBJECT *policy_obj = NULL;
3a273b
     ASN1_INTEGER *nonce_asn1 = NULL;
3a273b
 
3a273b
-    if (md == NULL && (md = EVP_get_digestbyname("sha1")) == NULL)
3a273b
+    if (md == NULL && (md = EVP_get_digestbyname("sha256")) == NULL)
3a273b
         goto err;
3a273b
     if ((ts_req = TS_REQ_new()) == NULL)
3a273b
         goto err;
3a273b
diff --git a/doc/man1/ts.pod b/doc/man1/ts.pod
3a273b
index 078905a845..83b8fe4350 100644
3a273b
--- a/doc/man1/ts.pod
3a273b
+++ b/doc/man1/ts.pod
3a273b
@@ -517,7 +517,7 @@ included. Default is no. (Optional)
3a273b
 =item B<ess_cert_id_alg>
3a273b
 
3a273b
 This option specifies the hash function to be used to calculate the TSA's
3a273b
-public key certificate identifier. Default is sha1. (Optional)
3a273b
+public key certificate identifier. Default is sha256. (Optional)
3a273b
 
3a273b
 =back
3a273b
 
3a273b
@@ -529,7 +529,7 @@ openssl/apps/openssl.cnf will do.
3a273b
 
3a273b
 =head2 Time Stamp Request
3a273b
 
3a273b
-To create a time stamp request for design1.txt with SHA-1
3a273b
+To create a time stamp request for design1.txt with SHA-256
3a273b
 without nonce and policy and no certificate is required in the response:
3a273b
 
3a273b
   openssl ts -query -data design1.txt -no_nonce \
3a273b
@@ -545,12 +545,12 @@ To print the content of the previous request in human readable format:
3a273b
 
3a273b
   openssl ts -query -in design1.tsq -text
3a273b
 
3a273b
-To create a time stamp request which includes the MD-5 digest
3a273b
+To create a time stamp request which includes the SHA-512 digest
3a273b
 of design2.txt, requests the signer certificate and nonce,
3a273b
 specifies a policy id (assuming the tsa_policy1 name is defined in the
3a273b
 OID section of the config file):
3a273b
 
3a273b
-  openssl ts -query -data design2.txt -md5 \
3a273b
+  openssl ts -query -data design2.txt -sha512 \
3a273b
         -tspolicy tsa_policy1 -cert -out design2.tsq
3a273b
 
3a273b
 =head2 Time Stamp Response