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:54 +0000 (14:24 +0100)
commit0bcb17a7776b7f740e855932890edfb7acfd7124
tree20b800fa5e9a05b9396e472a90a8aff5a14f07f4
parenta935132099af20a8a742d30f8edcb613e73a368d
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
crypto/cms/cms_smime.c