projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for CMS/PKCS7 MMA. If RSA decryption fails use a random key and
[oweals/openssl.git]
/
apps
/
spkac.c
diff --git
a/apps/spkac.c
b/apps/spkac.c
index ae2d88694f5257805513acb29cc8cb456b040c25..0e01ea9947dae0c3ce0bcf69c4ec70fc365909c1 100644
(file)
--- a/
apps/spkac.c
+++ b/
apps/spkac.c
@@
-285,7
+285,7
@@
bad:
pkey = NETSCAPE_SPKI_get_pubkey(spki);
if(verify) {
i = NETSCAPE_SPKI_verify(spki, pkey);
pkey = NETSCAPE_SPKI_get_pubkey(spki);
if(verify) {
i = NETSCAPE_SPKI_verify(spki, pkey);
- if
(i
) BIO_printf(bio_err, "Signature OK\n");
+ if
(i > 0
) BIO_printf(bio_err, "Signature OK\n");
else {
BIO_printf(bio_err, "Signature Failure\n");
ERR_print_errors(bio_err);
else {
BIO_printf(bio_err, "Signature Failure\n");
ERR_print_errors(bio_err);