In the openssl-1.0.0-beta3 the command openssl dgst -dss1 -verify fails with error: Error setting context 139832466196296:error:0A07806A:dsa routines:PKEY_DSA_CTRL:invalid digest type:dsa_pmeth.c:192:
See https://bugzilla.redhat.com/show_bug.cgi?id=520152 for detailed test case. I've patched the pkey_dsa_ctrl function to make the command work (see the attached patch). However I am not quite sure the fix is completely right. -- Tomas Mraz No matter how far down the wrong road you've gone, turn back. Turkish proverb
diff -up openssl-1.0.0-beta3/crypto/dsa/dsa_pmeth.c.dss1 openssl-1.0.0-beta3/crypto/dsa/dsa_pmeth.c --- openssl-1.0.0-beta3/crypto/dsa/dsa_pmeth.c.dss1 2008-11-05 19:38:56.000000000 +0100 +++ openssl-1.0.0-beta3/crypto/dsa/dsa_pmeth.c 2009-08-31 12:53:47.000000000 +0200 @@ -186,6 +186,7 @@ static int pkey_dsa_ctrl(EVP_PKEY_CTX *c case EVP_PKEY_CTRL_MD: if (EVP_MD_type((const EVP_MD *)p2) != NID_sha1 && + EVP_MD_type((const EVP_MD *)p2) != NID_dsa && EVP_MD_type((const EVP_MD *)p2) != NID_sha224 && EVP_MD_type((const EVP_MD *)p2) != NID_sha256) {