Trust RSA_check_key() to return correct values
authorRichard Levitte <levitte@openssl.org>
Wed, 24 Aug 2016 10:46:09 +0000 (12:46 +0200)
committerMatt Caswell <matt@openssl.org>
Wed, 24 Aug 2016 13:31:05 +0000 (14:31 +0100)
commit63db6b772fa264a62927f6a3584733192dc5a352
tree7dac3bcf6edd80c11b1bb9edfeaee65795f3baea
parent55d83bf7c10c7b205fffa23fa7c3977491e56c07
Trust RSA_check_key() to return correct values

In apps/rsa.c, we were second guessing RSA_check_key() to leave error
codes lying around without returning -1 properly.  However, this also
catches other errors that are lying around and that we should not care
about.

Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/rsa.c