Blame SOURCES/openssl-1.0.2a-apps-dgst.patch

7779df
diff -up openssl-1.0.2a/apps/ca.c.dgst openssl-1.0.2a/apps/ca.c
7779df
--- openssl-1.0.2a/apps/ca.c.dgst	2015-03-19 14:30:36.000000000 +0100
7779df
+++ openssl-1.0.2a/apps/ca.c	2015-04-21 17:01:38.841551616 +0200
7779df
@@ -157,7 +157,7 @@ static const char *ca_usage[] = {
7779df
     " -startdate YYMMDDHHMMSSZ  - certificate validity notBefore\n",
7779df
     " -enddate YYMMDDHHMMSSZ    - certificate validity notAfter (overrides -days)\n",
7779df
     " -days arg       - number of days to certify the certificate for\n",
7779df
-    " -md arg         - md to use, one of md2, md5, sha or sha1\n",
7779df
+    " -md arg         - md to use, see openssl dgst -h for list\n",
7779df
     " -policy arg     - The CA 'policy' to support\n",
7779df
     " -keyfile arg    - private key file\n",
7779df
     " -keyform arg    - private key file format (PEM or ENGINE)\n",
7779df
diff -up openssl-1.0.2a/apps/enc.c.dgst openssl-1.0.2a/apps/enc.c
7779df
--- openssl-1.0.2a/apps/enc.c.dgst	2015-03-19 14:19:00.000000000 +0100
7779df
+++ openssl-1.0.2a/apps/enc.c	2015-04-21 17:01:38.841551616 +0200
7779df
@@ -294,7 +294,7 @@ int MAIN(int argc, char **argv)
7779df
                        "%-14s the next argument is the md to use to create a key\n",
7779df
                        "-md");
7779df
             BIO_printf(bio_err,
7779df
-                       "%-14s   from a passphrase.  One of md2, md5, sha or sha1\n",
7779df
+                       "%-14s   from a passphrase. See openssl dgst -h for list.\n",
7779df
                        "");
7779df
             BIO_printf(bio_err, "%-14s salt in hex is the next argument\n",
7779df
                        "-S");
7779df
diff -up openssl-1.0.2a/apps/req.c.dgst openssl-1.0.2a/apps/req.c
7779df
--- openssl-1.0.2a/apps/req.c.dgst	2015-03-19 14:19:00.000000000 +0100
7779df
+++ openssl-1.0.2a/apps/req.c	2015-04-21 17:01:38.842551640 +0200
7779df
@@ -414,7 +414,7 @@ int MAIN(int argc, char **argv)
7779df
                    " -newkey ec:file generate a new EC key, parameters taken from CA in 'file'\n");
7779df
 #endif
7779df
         BIO_printf(bio_err,
7779df
-                   " -[digest]      Digest to sign with (md5, sha1, md2, mdc2, md4)\n");
7779df
+                   " -[digest]      Digest to sign with (see openssl dgst -h for list)\n");
7779df
         BIO_printf(bio_err, " -config file   request template file.\n");
7779df
         BIO_printf(bio_err,
7779df
                    " -subj arg      set or modify request subject\n");
7779df
diff -up openssl-1.0.2a/apps/ts.c.dgst openssl-1.0.2a/apps/ts.c
7779df
--- openssl-1.0.2a/apps/ts.c.dgst	2015-03-19 14:19:00.000000000 +0100
7779df
+++ openssl-1.0.2a/apps/ts.c	2015-04-21 17:01:38.842551640 +0200
7779df
@@ -337,7 +337,7 @@ int MAIN(int argc, char **argv)
7779df
     BIO_printf(bio_err, "usage:\n"
7779df
                "ts -query [-rand file%cfile%c...] [-config configfile] "
7779df
                "[-data file_to_hash] [-digest digest_bytes]"
7779df
-               "[-md2|-md4|-md5|-sha|-sha1|-mdc2|-ripemd160] "
7779df
+               "[-<hashalg>] "
7779df
                "[-policy object_id] [-no_nonce] [-cert] "
7779df
                "[-in request.tsq] [-out request.tsq] [-text]\n",
7779df
                LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
7779df
diff -up openssl-1.0.2a/apps/x509.c.dgst openssl-1.0.2a/apps/x509.c
7779df
--- openssl-1.0.2a/apps/x509.c.dgst	2015-03-19 14:30:36.000000000 +0100
7779df
+++ openssl-1.0.2a/apps/x509.c	2015-04-21 17:01:38.842551640 +0200
7779df
@@ -141,7 +141,7 @@ static const char *x509_usage[] = {
7779df
     " -set_serial     - serial number to use\n",
7779df
     " -text           - print the certificate in text form\n",
7779df
     " -C              - print out C code forms\n",
7779df
-    " -md2/-md5/-sha1/-mdc2 - digest to use\n",
7779df
+    " -<dgst>         - digest to use, see openssl dgst -h output for list\n",
7779df
     " -extfile        - configuration file with X509V3 extensions to add\n",
7779df
     " -extensions     - section from config file with X509V3 extensions to add\n",
7779df
     " -clrext         - delete extensions before signing and input certificate\n",
7779df
diff -up openssl-1.0.2a/doc/apps/ca.pod.dgst openssl-1.0.2a/doc/apps/ca.pod
7779df
--- openssl-1.0.2a/doc/apps/ca.pod.dgst	2015-01-20 13:33:36.000000000 +0100
7779df
+++ openssl-1.0.2a/doc/apps/ca.pod	2015-04-21 17:01:38.842551640 +0200
7779df
@@ -168,7 +168,8 @@ the number of days to certify the certif
7779df
 =item B<-md alg>
7779df
 
7779df
 the message digest to use. Possible values include md5, sha1 and mdc2.
7779df
-This option also applies to CRLs.
7779df
+For full list of digests see openssl dgst -h output. This option also
7779df
+applies to CRLs.
7779df
 
7779df
 =item B<-policy arg>
7779df
 
7779df
diff -up openssl-1.0.2a/doc/apps/ocsp.pod.dgst openssl-1.0.2a/doc/apps/ocsp.pod
7779df
--- openssl-1.0.2a/doc/apps/ocsp.pod.dgst	2015-03-19 14:19:00.000000000 +0100
7779df
+++ openssl-1.0.2a/doc/apps/ocsp.pod	2015-04-21 17:01:38.842551640 +0200
7779df
@@ -219,7 +219,8 @@ check is not performed.
7779df
 =item B<-md5|-sha1|-sha256|-ripemod160|...>
7779df
 
7779df
 this option sets digest algorithm to use for certificate identification
7779df
-in the OCSP request. By default SHA-1 is used. 
7779df
+in the OCSP request. By default SHA-1 is used. See openssl dgst -h output for
7779df
+the list of available algorithms.
7779df
 
7779df
 =back
7779df
 
7779df
diff -up openssl-1.0.2a/doc/apps/req.pod.dgst openssl-1.0.2a/doc/apps/req.pod
7779df
--- openssl-1.0.2a/doc/apps/req.pod.dgst	2015-03-19 14:30:36.000000000 +0100
7779df
+++ openssl-1.0.2a/doc/apps/req.pod	2015-04-21 17:01:38.843551664 +0200
7779df
@@ -201,7 +201,8 @@ will not be encrypted.
7779df
 
7779df
 this specifies the message digest to sign the request with (such as
7779df
 B<-md5>, B<-sha1>). This overrides the digest algorithm specified in
7779df
-the configuration file.
7779df
+the configuration file. For full list of possible digests see openssl
7779df
+dgst -h output.
7779df
 
7779df
 Some public key algorithms may override this choice. For instance, DSA
7779df
 signatures always use SHA1, GOST R 34.10 signatures always use
7779df
diff -up openssl-1.0.2a/doc/apps/x509.pod.dgst openssl-1.0.2a/doc/apps/x509.pod
7779df
--- openssl-1.0.2a/doc/apps/x509.pod.dgst	2015-03-19 14:30:36.000000000 +0100
7779df
+++ openssl-1.0.2a/doc/apps/x509.pod	2015-04-21 17:01:38.843551664 +0200
7779df
@@ -107,6 +107,7 @@ the digest to use. This affects any sign
7779df
 digest, such as the B<-fingerprint>, B<-signkey> and B<-CA> options. If not
7779df
 specified then SHA1 is used. If the key being used to sign with is a DSA key
7779df
 then this option has no effect: SHA1 is always used with DSA keys.
7779df
+For full list of digests see openssl dgst -h output.
7779df
 
7779df
 =item B<-engine id>
7779df