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

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