ecdh_cms_encrypt: simplify handling of pkey
authortb <tb@openbsd.org>
Wed, 17 Apr 2024 13:51:41 +0000 (13:51 +0000)
committertb <tb@openbsd.org>
Wed, 17 Apr 2024 13:51:41 +0000 (13:51 +0000)
commit590b72c0edb98d8085b16fc456da48c36a4569fb
treea977c6fe4dac42467f62ec0c15f86cb123d4578f
parent368f6dfa92efa3adb6e9e4f4d60b3703220c4045
ecdh_cms_encrypt: simplify handling of pkey

The pkey is only used in one scope. i2o allocates if passed a pointer
to NULL, so use that to drop two unnecessary local variables.

ok jsing
lib/libcrypto/ec/ec_ameth.c