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>
Thu, 8 May 2014 12:18:49 +0000 (13:18 +0100)
commit70ddf8ecca780cee6b636515ecb91262fc7d9e8f
tree445ad742d762a827ff26f0212305665ad0114dcc
parent9febee02720902c195fe929ecfe06362c551422c
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