Fix EC_KEY_set_private_key() to call key->group->meth->set_private()
authorKazuki Yamaguchi <k@rhe.jp>
Thu, 21 Apr 2016 08:35:53 +0000 (17:35 +0900)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 23 Apr 2016 03:24:27 +0000 (04:24 +0100)
commitacde647fb0347f64af8f8678b73ce41f2f499c02
treecb21a13ced1ce32c8f5e6ed7b0b8ae8c0d67cbf4
parent9f13d4dd5ec420fb2fa0a7b94a6d66bb2700a492
Fix EC_KEY_set_private_key() to call key->group->meth->set_private()

Fix a bug introduced by 6903e2e7e9a4 (Extended EC_METHOD customisation
support., 2016-02-01). key->meth->set_private() is wrongly called where
it should call key->group->meth->set_private().

PR#4517

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Stephen Henson <steve@openssl.org>
crypto/ec/ec_key.c