diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2016-09-07 16:53:18 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-09-07 13:56:43 -0400 |
commit | 8195a8691108d89fbb0dd11599154067009d10d6 (patch) | |
tree | 091af705b578ee6fdab6de3d685a78a4936357ad /crypto/md4 | |
parent | 3f1014960353af29a05a7b5dac40afd30d4f9bb3 (diff) |
Avoid EVP_PKEY_cmp() crash on EC keys without public component
Some hardware devices don't provide the public EC_POINT data. The only
way for X509_check_private_key() to validate that the key matches a
given certificate is to actually perform a sign operation and then
verify it using the public key in the certificate.
Maybe that can come later, as discussed in issue 1532. But for now let's
at least make it fail gracefully and not crash.
GH: 1532
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1547)
(cherry picked from commit 92ed7fa575a80955f3bb6efefca9bf576a953586)
Diffstat (limited to 'crypto/md4')
0 files changed, 0 insertions, 0 deletions