Skip to content
Commit 0388ac4c authored by Adam Langley's avatar Adam Langley Committed by Emilia Kasper
Browse files

RT3065: ec_private_key_dont_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-----

Reviewed-by: default avatarDr Stephen Henson <steve@openssl.org>
parent 7b3e11c5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment