commit | f71a27920a903c9c36bcb31e68781b17674d3fd2 | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@chromium.org> | Fri Jun 20 12:00:00 2014 -0700 |
committer | Adam Langley <agl@chromium.org> | Fri Jun 20 13:17:34 2014 -0700 |
tree | ed18a2cd9a1359b53796e18f622a4fa22233d1e1 | |
parent | 27ae9ed7748d84fb84b4802958cbecaa879d4298 [diff] |
Fix EC crash. This change saves several EC routines from crashing when an EC_KEY is missing a public key. The public key is optional in the EC private key format and, without this patch, running the following through `openssl ec` causes a crash: -----BEGIN EC PRIVATE KEY----- MBkCAQEECAECAwQFBgcIoAoGCCqGSM49AwEH -----END EC PRIVATE KEY-----