]> git.ipfire.org Git - thirdparty/openssl.git/commit
doc: Clarify that BN_CTX must not be NULL for BN arithmetic functions
authorkovan <xaum.io@gmail.com>
Tue, 27 Jan 2026 05:16:06 +0000 (06:16 +0100)
committerNorbert Pocs <norbertp@openssl.org>
Wed, 15 Apr 2026 11:47:58 +0000 (13:47 +0200)
commitba2f616aa9b9c081bb89a7b1073c90f2c86cccff
treef768e14ca3defe55bb571bcaf3bfab79d416eab4
parentf4079c804ffaf363c8723c2589308e43888df820
doc: Clarify that BN_CTX must not be NULL for BN arithmetic functions

The documentation for BN_add and related functions did not explicitly
state that the ctx parameter cannot be NULL. Users may assume NULL is
acceptable since some other OpenSSL functions allow it, but passing
NULL to functions like BN_mod_add() or BN_mod() causes a crash.

Update the documentation to explicitly state that ctx must not be NULL.

Fixes #12092

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Wed Apr 15 11:47:59 2026
(Merged from https://github.com/openssl/openssl/pull/29773)
doc/man3/BN_add.pod