Prepare to provide DH_get0_{p,q,g,{priv,pub}_key}()
authortb <tb@openbsd.org>
Wed, 5 Jan 2022 20:30:16 +0000 (20:30 +0000)
committertb <tb@openbsd.org>
Wed, 5 Jan 2022 20:30:16 +0000 (20:30 +0000)
commitd742c600f2cb136c48cd652209a0552f7a1e93cb
tree10dc23073daa0f406e30a6e7a9036beb8d986f9a
parent05505beb86b46bbe7644ab2cd4bf89845133ba1b
Prepare to provide DH_get0_{p,q,g,{priv,pub}_key}()

These are accessors that allow getting one specific DH member. They are
less error prone than the current getters DH_get0_{pqg,key}(). They
are used by many ports and will also be used in base for this reason.

Who can remember whether the pub_key or the priv_key goes first in
DH_get0_key()?

ok inoguchi jsing
lib/libcrypto/dh/dh.h
lib/libcrypto/dh/dh_lib.c