You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 14b6fe2
Browse filesBrowse the repository at this point in the historyBrowse files
Fix guards on the sp_int.c invmod helpers and the ACME encoder
sp_invmod() is built whenever WOLFSSL_SP_INVMOD is set, which
settings.h does for OPENSSL_EXTRA and DSA as well as ECC and RSA
private keys. The functions it and sp_div() call, _sp_cmp_abs(),
_sp_set(), _sp_sub_off(), sp_lshb(), sp_div(), sp_mod(), sp_mul(),
sp_sub() and sp_rshb(), were built only for MATH_ALL, DH, ECC or RSA,
so a WOLFSSL_SP_MATH build with OPENSSL_EXTRA and without DH or ECC
(no RSA, or RSA public-only or verify-only) failed on implicit
declarations or undefined symbols. Add WOLFSSL_SP_INVMOD to their
guards and to the sp_div() prototype and prefix-map rename. _sp_cmp()
had OPENSSL_EXTRA in its guard although none of its callers are built
for it, which left it unused in the same builds, so drop that term.
The ACME identifier extension data in struct Cert and DerCert is under
WOLFSSL_CERT_EXT, but the code in EncodeExtensions(), the original ASN
encoder and its API test was guarded by WOLFSSL_ACME_OID alone, so
WOLFSSL_CERT_GEN with WOLFSSL_ACME_OID and without WOLFSSL_CERT_EXT
did not compile. Guard them with both.
test_wc_CheckPrivateKey_RSA_pub_only calls wc_CheckPrivateKey(), which
is WOLFSSL_LOCAL, so a shared --enable-rsapub build did not link the
unit test. Build it only with WOLFSSL_TEST_STATIC_BUILD, like the other
tests of local functions.
Add os-check legs for these builds, the ACME one also through the
original ASN encoder, and for the WOLFSSL_PUBLIC_MP and
IGNORE_NETSCAPE_CERT_TYPE builds fixed earlier on this branch.
0 commit comments