Revision ec1f1255127c3987494978c9bf1c8f7ac9b093e4 authored by Matt Caswell on 08 October 2015, 12:36:10 UTC, committed by Matt Caswell on 08 October 2015, 13:17:08 UTC
The function int_rsa_verify is an internal function used for verifying an
RSA signature. It takes an argument |dtype| which indicates the digest type
that was used. Dependant on that digest type the processing of the
signature data will vary. In particular if |dtype == NID_mdc2| and the
signature data is a bare OCTETSTRING then it is treated differently to the
default case where the signature data is treated as a DigestInfo (X509_SIG).

Due to a missing "else" keyword the logic actually correctly processes the
OCTETSTRING format signature first, and then attempts to continue and
process it as DigestInfo. This will invariably fail because we already know
that it is a bare OCTETSTRING.

This failure doesn't actualy make a real difference because it ends up at
the |err| label regardless and still returns a "success" result. This patch
just cleans things up to make it look a bit more sane.

RT#4076

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit dffe51091f412dcbc18f6641132f0b4f0def6bce)
1 parent 363c8fd
History
File Mode Size
MacOS
Netware
VMS
apps
bugs
certs
crypto
demos
doc
engines
ms
os2
shlib
ssl
test
times
tools
util
.gitignore -rw-r--r-- 1.6 KB
.travis.yml -rw-r--r-- 1015 bytes
ACKNOWLEDGMENTS -rw-r--r-- 1.0 KB
CHANGES -rw-r--r-- 442.5 KB
CHANGES.SSLeay -rw-r--r-- 41.7 KB
Configure -rwxr-xr-x 103.5 KB
FAQ -rw-r--r-- 84 bytes
INSTALL -rw-r--r-- 14.3 KB
INSTALL.DJGPP -rw-r--r-- 2.0 KB
INSTALL.MacOS -rw-r--r-- 3.2 KB
INSTALL.NW -rw-r--r-- 18.4 KB
INSTALL.OS2 -rw-r--r-- 744 bytes
INSTALL.VMS -rw-r--r-- 10.7 KB
INSTALL.W32 -rw-r--r-- 11.6 KB
INSTALL.W64 -rw-r--r-- 2.1 KB
INSTALL.WCE -rw-r--r-- 3.2 KB
LICENSE -rw-r--r-- 6.1 KB
Makefile.org -rw-r--r-- 22.7 KB
Makefile.shared -rw-r--r-- 21.4 KB
NEWS -rw-r--r-- 30.0 KB
PROBLEMS -rw-r--r-- 8.5 KB
README -rw-r--r-- 9.2 KB
README.ASN1 -rw-r--r-- 7.5 KB
README.ENGINE -rw-r--r-- 15.7 KB
TABLE -rw-r--r-- 154.6 KB
config -rwxr-xr-x 27.7 KB
e_os.h -rw-r--r-- 24.4 KB
e_os2.h -rw-r--r-- 10.7 KB
install.com -rw-r--r-- 3.6 KB
makevms.com -rwxr-xr-x 39.0 KB
openssl.doxy -rw-r--r-- 137 bytes
openssl.spec -rw-r--r-- 7.7 KB

README

back to top