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

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