Check RSA_public_decrypt() length before constructing and comparing a chunk
authorMartin Willi <martin@revosec.ch>
Tue, 9 Apr 2013 09:38:51 +0000 (11:38 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 10 Apr 2013 16:10:30 +0000 (18:10 +0200)
commitb52771fbb2d25a947204d95fe29882cfc0312ef5
tree2b1586c3b564859407d04fd68a26183e56ac9431
parent97d975b7bb7b5112238f07bc4bd49f34bf5b2fcc
Check RSA_public_decrypt() length before constructing and comparing a chunk

If decryption fails, it returns -1. chunk_equals() should catch that error,
but be more explicit in error checking.
src/libstrongswan/plugins/openssl/openssl_rsa_public_key.c