Fix pkey_ec_keygen()
authortb <tb@openbsd.org>
Thu, 28 Dec 2023 22:09:10 +0000 (22:09 +0000)
committertb <tb@openbsd.org>
Thu, 28 Dec 2023 22:09:10 +0000 (22:09 +0000)
commitfd0c3e448d1f0eb8353e8106c6cf6225e42e06b0
tree324e93bfdbda9ef95301f6469b062a90f434a60c
parenta21e684406ff918992e7652163c56a09bda12860
Fix pkey_ec_keygen()

The EC code came later, and people got better at writing terrible code.
In this case, they could remain quite close to what they copy-pasted
from DH, so it was relatively straightforward (for once). There's only
one slight extra twist and that's easily dealt with.

ok jsing
lib/libcrypto/ec/ec_pmeth.c