Return an error if no recipient type matches.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 8 May 2014 12:10:56 +0000 (13:10 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 9 May 2014 13:24:53 +0000 (14:24 +0100)
commit2c4144638ae7739871db0574265952dc350c5dfa
treeaca6261773f6d0ad4a52103754bcdea9038f436c
parent2fc04cb8728aafe9016569947d64763b5b106594
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 bd43b4cf778a53ffa5d77510ecd408a009dc00d2)
crypto/cms/cms_smime.c