Rewrite EVP_PKEY_add1_attr_by_NID()
authortb <tb@openbsd.org>
Sun, 14 Jul 2024 16:06:31 +0000 (16:06 +0000)
committertb <tb@openbsd.org>
Sun, 14 Jul 2024 16:06:31 +0000 (16:06 +0000)
commitdc6fcfdcb9df6cfcb47f1f492ab34de3f94caa46
tree7852ca499135295a8995d4ab38d534a532c611d7
parent2a0af5fe32f6f0f93eab1cbb5fc811184d05c6d8
Rewrite EVP_PKEY_add1_attr_by_NID()

Instead of jumping through many layers that cause headache, we can achieve
the same in an entirely straightforward way without losing clarity.

ok jsing
lib/libcrypto/evp/evp_pkey.c