Simplify X509_REQ_extension_nid()
authortb <tb@openbsd.org>
Wed, 8 May 2024 08:11:50 +0000 (08:11 +0000)
committertb <tb@openbsd.org>
Wed, 8 May 2024 08:11:50 +0000 (08:11 +0000)
commit0f2aafcc0115e50e30eb0eae763a2b5f8127f2d9
treeb74b1a54e9a7b9af2e8a8e54ad8fa35da1fccbd8
parentb7b56f16640800d3e2bd645fdc125400ad0216f0
Simplify X509_REQ_extension_nid()

Now that the global ext_nids[] array can no longer be modified by the
application, we can simplify this by returning the two possible NIDs
that we accept in the extension list attribute in PKCS#10 certification
requests.

The year is 2024. This API is entirely unused by the ecosystem. Well not
entirely! One small village of indomitable rare API use still holds out
against the cleansers. You may have guessed it: security/xca.

ok jsing
lib/libcrypto/x509/x509_req.c