Return an error if no recipient type matches.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 8 May 2014 12:17:11 +0000 (13:17 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 9 May 2014 13:24:49 +0000 (14:24 +0100)
commitc3cd9be01fe660c87476042312413c2cbda4e18f
tree078e817e45dcefe0923b00cc9c450bc213a2daaf
parent9f4a47b3eda44a74560f86db5b9648eaef9602df
Return an error if no recipient type matches.

If the key type does not match any CMS recipient type return
an error instead of using a random key (MMA mitigation). This
does not leak any useful information to an attacker.

PR#3348
(cherry picked from commit 83a3182e0560f76548f4378325393461f6275493)
crypto/cms/cms_smime.c