[openssl/openssl] 9c2bfa: OSSL_FN: unwrap BN_CTX's wrapping of OSSL_FN_CTX

"'Richard Levitte' via openssl-commits" <[email protected]> Tue, 14 Jul 2026 04:11:40 -0700
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/feature/ossl_fn/[email protected]>
  Branch: refs/heads/feature/ossl_fn
  Home:   https://github.com/openssl/openssl
  Commit: 9c2bfa9f26efb504362b5891d73f02bdbb445266
      https://github.com/openssl/openssl/commit/9c2bfa9f26efb504362b5891d73f02bdbb445266
  Author: Richard Levitte <[email protected]>
  Date:   2026-07-12 (Sun, 12 Jul 2026)

  Changed paths:
    M crypto/bn/bn_ctx.c
    M include/crypto/bn.h
    M test/bn_internal_test.c

  Log Message:
  -----------
  OSSL_FN: unwrap BN_CTX's wrapping of OSSL_FN_CTX

The BN_CTX -> OSSL_FN_CTX acquisition machinery
(bn_ctx_acquire_ossl_fn_ctx / bn_ctx_release_ossl_fn_ctx and the
fn_ctx field on struct bignum_ctx) existed only to serve the BN_*
arithmetic wrappers that delegated to OSSL_FN.  Those wrappers were
removed in previous commits, leaving the machinery orphaned except
for the self-test that exercised it; OSSL_FN consumers obtain their
OSSL_FN_CTX directly via OSSL_FN_CTX_new() / OSSL_FN_CTX_secure_new().

Remove the wrapping machinery and its dedicated test
(test_bn_ctx_fn_ctx) by reverting:

  e3213b0c03 ("Add OSSL_FN_CTX integration with BN_CTX")

Assisted-by: Pi:z-ai/glm-5.2
Signed-off-by: Richard Levitte <[email protected]>

Reviewed-by: Dmitry Belyavskiy <[email protected]>
Reviewed-by: Igor Ustinov <[email protected]>
MergeDate: Tue Jul 14 11:06:24 2026
(Merged from https://github.com/openssl/openssl/pull/31895)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications

-- 
You received this message because you are subscribed to the Google Groups "openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-commits/openssl/openssl/push/refs/heads/feature/ossl_fn/7360ae-9c2bfa%40github.com.