]> git.kaiwu.me - njs.git/commit
Webcrypto: fix QuickJS build with OpenSSL < 1.1.0
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 12 Aug 2026 00:13:13 +0000 (17:13 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 12 Aug 2026 03:36:54 +0000 (20:36 -0700)
commit4bce5f0e7739984b1fb995625baf8ba698f231b5
tree385445f1bb6fcf8558e6f2bb5cb5d63ae3718a2b
parent757d2302e54e494f808918a829cc1ba95a194dd8
Webcrypto: fix QuickJS build with OpenSSL < 1.1.0

The issue was introduced in 75ca26f83471 (0.8.10).

The QuickJS WebCrypto implementation called BN_bn2binpad() and
ECDSA_SIG_set0() directly, although compatibility wrappers were already
used by the njs implementation.  It also referenced an njs-only
string_info variable when HKDF was unavailable.

Use the shared OpenSSL compatibility wrappers and remove the stale
reference.
external/qjs_webcrypto_module.c