diff -Nur sign-1.0.7.orig/src/pki.c sign-1.0.7/src/pki.c
--- sign-1.0.7.orig/src/pki.c	2004-08-04 04:10:35.000000000 +0000
+++ sign-1.0.7/src/pki.c	2006-09-16 17:17:34.335535125 +0000
@@ -286,7 +286,7 @@
 
 		/* if it's not a decryption problem - bail out */
 		if (ERR_get_error() != ERR_PACK(ERR_LIB_EVP,
-		                                EVP_F_EVP_DECRYPTFINAL,
+		                                EVP_F_EVP_DECRYPTFINAL_EX,
 		                                EVP_R_BAD_DECRYPT))
 			goto cleanup;
 
