8d20fec
diff -up openssl-1.0.0d/apps/ca.c.dgst openssl-1.0.0d/apps/ca.c
8d20fec
--- openssl-1.0.0d/apps/ca.c.dgst	2009-12-02 15:41:24.000000000 +0100
8d20fec
+++ openssl-1.0.0d/apps/ca.c	2011-04-05 21:09:42.000000000 +0200
8d20fec
@@ -157,7 +157,7 @@ static const char *ca_usage[]={
8d20fec
 " -startdate YYMMDDHHMMSSZ  - certificate validity notBefore\n",
8d20fec
 " -enddate YYMMDDHHMMSSZ    - certificate validity notAfter (overrides -days)\n",
8d20fec
 " -days arg       - number of days to certify the certificate for\n",
8d20fec
-" -md arg         - md to use, one of md2, md5, sha or sha1\n",
8d20fec
+" -md arg         - md to use, see openssl dgst -h for list\n",
8d20fec
 " -policy arg     - The CA 'policy' to support\n",
8d20fec
 " -keyfile arg    - private key file\n",
8d20fec
 " -keyform arg    - private key file format (PEM or ENGINE)\n",
8d20fec
diff -up openssl-1.0.0d/apps/enc.c.dgst openssl-1.0.0d/apps/enc.c
8d20fec
--- openssl-1.0.0d/apps/enc.c.dgst	2010-06-15 19:25:02.000000000 +0200
8d20fec
+++ openssl-1.0.0d/apps/enc.c	2011-04-05 21:11:54.000000000 +0200
8d20fec
@@ -302,7 +302,7 @@ bad:
8d20fec
 			BIO_printf(bio_err,"%-14s passphrase is the next argument\n","-k");
8d20fec
 			BIO_printf(bio_err,"%-14s passphrase is the first line of the file argument\n","-kfile");
8d20fec
 			BIO_printf(bio_err,"%-14s the next argument is the md to use to create a key\n","-md");
8d20fec
-			BIO_printf(bio_err,"%-14s   from a passphrase.  One of md2, md5, sha or sha1\n","");
8d20fec
+			BIO_printf(bio_err,"%-14s   from a passphrase. See openssl dgst -h for list.\n","");
8d20fec
 			BIO_printf(bio_err,"%-14s salt in hex is the next argument\n","-S");
8d20fec
 			BIO_printf(bio_err,"%-14s key/iv in hex is the next argument\n","-K/-iv");
8d20fec
 			BIO_printf(bio_err,"%-14s print the iv/key (then exit if -P)\n","-[pP]");
8d20fec
diff -up openssl-1.0.0d/apps/req.c.dgst openssl-1.0.0d/apps/req.c
8d20fec
--- openssl-1.0.0d/apps/req.c.dgst	2010-03-10 14:48:21.000000000 +0100
8d20fec
+++ openssl-1.0.0d/apps/req.c	2011-04-05 21:12:33.000000000 +0200
8d20fec
@@ -421,7 +421,7 @@ bad:
8d20fec
 #ifndef OPENSSL_NO_ECDSA
8d20fec
 		BIO_printf(bio_err," -newkey ec:file generate a new EC key, parameters taken from CA in 'file'\n");
8d20fec
 #endif
8d20fec
-		BIO_printf(bio_err," -[digest]      Digest to sign with (md5, sha1, md2, mdc2, md4)\n");
8d20fec
+		BIO_printf(bio_err," -[digest]      Digest to sign with (see openssl dgst -h for list)\n");
8d20fec
 		BIO_printf(bio_err," -config file   request template file.\n");
8d20fec
 		BIO_printf(bio_err," -subj arg      set or modify request subject\n");
8d20fec
 		BIO_printf(bio_err," -multivalue-rdn enable support for multivalued RDNs\n");
8d20fec
diff -up openssl-1.0.0d/apps/ts.c.dgst openssl-1.0.0d/apps/ts.c
8d20fec
--- openssl-1.0.0d/apps/ts.c.dgst	2009-10-18 16:42:26.000000000 +0200
8d20fec
+++ openssl-1.0.0d/apps/ts.c	2011-04-05 21:16:07.000000000 +0200
8d20fec
@@ -368,7 +368,7 @@ int MAIN(int argc, char **argv)
8d20fec
 	BIO_printf(bio_err, "usage:\n"
8d20fec
 		   "ts -query [-rand file%cfile%c...] [-config configfile] "
8d20fec
 		   "[-data file_to_hash] [-digest digest_bytes]"
8d20fec
-		   "[-md2|-md4|-md5|-sha|-sha1|-mdc2|-ripemd160] "
8d20fec
+		   "[-<hashalg>] "
8d20fec
 		   "[-policy object_id] [-no_nonce] [-cert] "
8d20fec
 		   "[-in request.tsq] [-out request.tsq] [-text]\n",
8d20fec
 		   LIST_SEPARATOR_CHAR, LIST_SEPARATOR_CHAR);
8d20fec
diff -up openssl-1.0.0d/apps/x509.c.dgst openssl-1.0.0d/apps/x509.c
8d20fec
--- openssl-1.0.0d/apps/x509.c.dgst	2011-04-05 21:13:42.000000000 +0200
8d20fec
+++ openssl-1.0.0d/apps/x509.c	2011-04-05 21:13:17.000000000 +0200
8d20fec
@@ -141,7 +141,7 @@ static const char *x509_usage[]={
8d20fec
 " -set_serial     - serial number to use\n",
8d20fec
 " -text           - print the certificate in text form\n",
8d20fec
 " -C              - print out C code forms\n",
8d20fec
-" -md2/-md5/-sha1/-mdc2 - digest to use\n",
8d20fec
+" -<dgst>         - digest to use, see openssl dgst -h output for list\n",
8d20fec
 " -extfile        - configuration file with X509V3 extensions to add\n",
8d20fec
 " -extensions     - section from config file with X509V3 extensions to add\n",
8d20fec
 " -clrext         - delete extensions before signing and input certificate\n",
8d20fec
diff -up openssl-1.0.0d/doc/apps/ca.pod.dgst openssl-1.0.0d/doc/apps/ca.pod
8d20fec
--- openssl-1.0.0d/doc/apps/ca.pod.dgst	2009-04-10 13:25:53.000000000 +0200
8d20fec
+++ openssl-1.0.0d/doc/apps/ca.pod	2011-04-05 21:16:39.000000000 +0200
8d20fec
@@ -160,7 +160,8 @@ the number of days to certify the certif
8d20fec
 =item B<-md alg>
8d20fec
 
8d20fec
 the message digest to use. Possible values include md5, sha1 and mdc2.
8d20fec
-This option also applies to CRLs.
8d20fec
+For full list of digests see openssl dgst -h output. This option also
8d20fec
+applies to CRLs.
8d20fec
 
8d20fec
 =item B<-policy arg>
8d20fec
 
8d20fec
diff -up openssl-1.0.0d/doc/apps/ocsp.pod.dgst openssl-1.0.0d/doc/apps/ocsp.pod
8d20fec
--- openssl-1.0.0d/doc/apps/ocsp.pod.dgst	2008-02-25 19:11:47.000000000 +0100
8d20fec
+++ openssl-1.0.0d/doc/apps/ocsp.pod	2011-04-05 21:18:17.000000000 +0200
8d20fec
@@ -210,7 +210,8 @@ check is not performed.
8d20fec
 =item B<-md5|-sha1|-sha256|-ripemod160|...>
8d20fec
 
8d20fec
 this option sets digest algorithm to use for certificate identification
8d20fec
-in the OCSP request. By default SHA-1 is used. 
8d20fec
+in the OCSP request. By default SHA-1 is used. See openssl dgst -h output for
8d20fec
+the list of available algorithms.
8d20fec
 
8d20fec
 =back
8d20fec
 
8d20fec
diff -up openssl-1.0.0d/doc/apps/req.pod.dgst openssl-1.0.0d/doc/apps/req.pod
8d20fec
--- openssl-1.0.0d/doc/apps/req.pod.dgst	2009-04-10 18:42:28.000000000 +0200
8d20fec
+++ openssl-1.0.0d/doc/apps/req.pod	2011-04-05 21:20:47.000000000 +0200
8d20fec
@@ -201,7 +201,8 @@ will not be encrypted.
8d20fec
 
8d20fec
 this specifies the message digest to sign the request with (such as
8d20fec
 B<-md5>, B<-sha1>). This overrides the digest algorithm specified in
8d20fec
-the configuration file.
8d20fec
+the configuration file. For full list of possible digests see openssl
8d20fec
+dgst -h output.
8d20fec
 
8d20fec
 Some public key algorithms may override this choice. For instance, DSA
8d20fec
 signatures always use SHA1, GOST R 34.10 signatures always use
8d20fec
diff -up openssl-1.0.0d/doc/apps/x509.pod.dgst openssl-1.0.0d/doc/apps/x509.pod
8d20fec
--- openssl-1.0.0d/doc/apps/x509.pod.dgst	2010-01-12 18:27:11.000000000 +0100
8d20fec
+++ openssl-1.0.0d/doc/apps/x509.pod	2011-04-05 21:19:56.000000000 +0200
8d20fec
@@ -101,6 +101,7 @@ the digest to use. This affects any sign
8d20fec
 digest, such as the B<-fingerprint>, B<-signkey> and B<-CA> options. If not
8d20fec
 specified then SHA1 is used. If the key being used to sign with is a DSA key
8d20fec
 then this option has no effect: SHA1 is always used with DSA keys.
8d20fec
+For full list of digests see openssl dgst -h output.
8d20fec
 
8d20fec
 =item B<-engine id>
8d20fec