wolfSSL / wolfssl

The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3 and DTLS 1.3!
https://www.wolfssl.com
GNU General Public License v2.0
2.31k stars 823 forks source link

Regression testing: fix compilation for unusual configs #7699

Closed SparkiDev closed 3 months ago

SparkiDev commented 3 months ago

Description

Disable ECC but have OPENSSL_EXTRA and curve25519 - fix #ifdef protection in ssl.c.

tests/api.c: SSL_SESSION_get_max_fragment_length is not available when no session cache. ASN1 APIs using generalized time disabled when NO_ASN_TIME defined so disable tests.

Testing

./configure --disable-shared 'CC=clang -fsanitize=address,undefined -g' --enable-all CFLAGS=-DNO_ASN_TIME

./configure --disable-shared 'CC=clang -fsanitize=address,undefined -g' --enable-opensslall --enable-rsa --enable-curve25519 --disable-dh --disable-ecc

Checklist