Rework pkey_dh_paramgen()
authortb <tb@openbsd.org>
Thu, 28 Dec 2023 22:10:33 +0000 (22:10 +0000)
committertb <tb@openbsd.org>
Thu, 28 Dec 2023 22:10:33 +0000 (22:10 +0000)
commitcb6b0a5e2bec6409da8e1668ede523e52bbdbeed
tree5dcdd8259a9904b582490068646d0eba7ad0ce95
parentfd0c3e448d1f0eb8353e8106c6cf6225e42e06b0
Rework pkey_dh_paramgen()

Similar to pkey_rsa_paramgen() this function does some strange dances
with the pkey_gencb and initialization plus missing error checks. Fix
all that and use the idiom established in previous commits.

ok jsing
lib/libcrypto/dh/dh_pmeth.c