wolfssl/tests
Daniel Pouzzner 17870d4159 src/internal.c: in wolfSSL_ERR_reason_error_string(), add missing error string for SCR_DIFFERENT_CERT_E.
wolfssl/ssl.h, wolfssl/error-ssl.h, wolfssl/wolfcrypt/error-crypt.h, wolfcrypt/src/error.c, and src/internal.c:
* fix values of WOLFSSL_ERROR_SSL and WOLFSSL_ERROR_WANT_X509_LOOKUP to match OpenSSL values;
* move legacy CyaSSL compat layer error codes from ssl.h to error-ssl.h and renumber them to conform to existing sequence;
* move enum IOerrors from ssl.h to error-ssl.h to get picked up by support/gen-debug-trace-error-codes.sh;
* add to enum wolfSSL_ErrorCodes negative counterparts for several positive error return constants;
* include error-ssl.h from ssl.h;
* add label (wolfCrypt_ErrorCodes) to error-crypt.h enum, and in wc_GetErrorString(), use switch ((enum wolfCrypt_ErrorCodes)error) to activate switch warnings for missing enums;
* in wolfSSL_ERR_reason_error_string(), use switch((enum wolfSSL_ErrorCodes)error) to activate switch warnings for missing enums;
* in ssl.h, add special-case WOLFSSL_DEBUG_TRACE_ERROR_CODES macros for WOLFSSL_FAILURE;
* in error-crypt.h, add missing WOLFSSL_API attribute to wc_backtrace_render(); and
* harmonize gating of error codes, ssl.h / error-ssl.h / internal.c:wolfSSL_ERR_reason_error_string() / api.c:error_test().

tests/api.c:
* add error_test() adapted from wolfcrypt/test/test.c, checking all error strings for expected presence/absence and length, called from existing test_wolfSSL_ERR_strings().
* in post_auth_version_client_cb(), add missing !NO_ERROR_STRINGS gating.

add numerous WC_NO_ERR_TRACE()s to operand error code uses, cleaning up error traces in general, and particularly when WOLFSSL_DEBUG_TRACE_ERROR_CODES_ALWAYS.
* crypto lib (36),
* crypto test&benchmark (20),
* TLS lib (179),
* examples (122),
* linuxkm (3),
* tests/api.c (2272).
2024-08-29 14:22:56 -05:00
..
api.c src/internal.c: in wolfSSL_ERR_reason_error_string(), add missing error string for SCR_DIFFERENT_CERT_E. 2024-08-29 14:22:56 -05:00
CONF_FILES_README.md Cleanup markdown documentation 2021-10-13 16:39:46 +01:00
hash.c update copyright to 2024 2024-07-19 13:15:05 -06:00
include.am Add dtls 1.3 PQC suites tests 2023-11-08 10:29:35 +01:00
NCONF_test.cnf Internal unit tests 2020-12-17 14:26:49 +01:00
quic.c Fixes for uses of deprecated sprintf. If C89 remap XSNPRINTF to use sprintf. 2024-07-29 14:03:44 -07:00
README re-format test-psk-no-id.conf add README 2015-08-03 11:04:18 -06:00
srp.c update copyright to 2024 2024-07-19 13:15:05 -06:00
suites.c Kyber: fix TLS usage 2024-08-27 10:35:08 +10:00
test-altchains.conf Fix to catch the issue in this PR with alt cert chains, which only happens if the verify callback is used and the chain is long enough. Cleanup of the myVerify callback to allow specific actions. Fix the suites.c to not crash if no newline at end of file. Added helpful debug message to show that a CA was found. 2020-06-18 09:26:50 -07:00
test-chains.conf Fix for tests/test-chains.conf with new intermediate CA. 2020-06-18 08:33:59 -07:00
test-dhprime.conf Fix for DH prime test (extra leading spaces). Fix for new chain tests with CRL enabled. The current way of testing chain only loads root CA as trusted. The intermediate CA CRL isn't trusted or loaded and causes error. 2018-12-21 12:36:47 -08:00
test-dtls13-cid.conf add basic ConnectionID DTLS tests 2022-08-23 16:58:24 +02:00
test-dtls13-downgrade-fails.conf tests: add negative version negotation tests 2022-09-28 18:42:38 +02:00
test-dtls13-downgrade.conf Support (D)TLS1.3 downgrade when using PSK 2024-03-29 18:04:30 +00:00
test-dtls13-pq-2-frag.conf Add dtls 1.3 PQC suites tests 2023-11-08 10:29:35 +01:00
test-dtls13-pq-2.conf Kyber with DTLS 1.3 tests 2022-12-14 12:46:24 -05:00
test-dtls13-pq-frag.conf Add dtls 1.3 PQC suites tests 2023-11-08 10:29:35 +01:00
test-dtls13-pq.conf Kyber with DTLS 1.3 tests 2022-12-14 12:46:24 -05:00
test-dtls13-psk.conf fix: wrong size using DTLSv1.3 in RestartHandshakeHashWithCookie 2022-10-13 17:42:58 +02:00
test-dtls13.conf tests: add dtls13 null cipher test 2023-05-19 08:10:26 +00:00
test-dtls-downgrade.conf tests: add dtls downgrade tests 2022-07-06 16:18:44 +02:00
test-dtls-fails-cipher.conf Correctly reset the Tx sequence number 2021-03-09 18:30:10 +01:00
test-dtls-fails.conf Added a suite test use case to cover the new error check. Also fixed and issue with passing a couple flags to the test case runner, and some other changes to support the new test. 2020-07-22 13:20:23 -07:00
test-dtls-group.conf Purge IDEA cipher 2022-01-31 15:29:25 -05:00
test-dtls-mtu.conf Merge pull request #5149 from julek-wolfssl/store-frags-v2 2022-06-01 10:52:54 -07:00
test-dtls-reneg-client.conf Purge IDEA cipher 2022-01-31 15:29:25 -05:00
test-dtls-reneg-server.conf Add testing/docs for blocking write 2022-05-27 21:26:55 +02:00
test-dtls-resume.conf tests: add bidirectional shutdown UDP tests 2022-05-11 13:27:37 +02:00
test-dtls-sha2.conf Disallow SHA-2 ciphersuites from TLS 1.0 and 1.1 handshakes 2019-09-06 09:31:14 +10:00
test-dtls-srtp-fails.conf tests: support test for SRTP 2022-01-19 13:35:29 +01:00
test-dtls-srtp.conf tests: support test for SRTP 2022-01-19 13:35:29 +01:00
test-dtls.conf ECDHE-PSK with x25519 2024-01-16 15:18:05 -08:00
test-ecc-cust-curves.conf ECC key load: fixes 2024-07-15 15:46:05 +10:00
test-ed448.conf Update OpenSSL interopability testing 2020-08-11 16:44:45 +10:00
test-ed25519.conf ECC: Disable ECC but have Curve25519/448 and PK callbacks fix 2021-05-10 10:32:55 +10:00
test-enckeys.conf New tests for cert chains, alternate cert chains, trusted peer certs and DH prime cleanup: 2018-12-21 09:54:55 -08:00
test-fails.conf Verify Callback Fix 2020-11-24 11:46:10 -08:00
test-maxfrag-dtls.conf New tests for cert chains, alternate cert chains, trusted peer certs and DH prime cleanup: 2018-12-21 09:54:55 -08:00
test-maxfrag.conf Add testing/docs for blocking write 2022-05-27 21:26:55 +02:00
test-p521.conf TLS 1.3: Fix P-521 algorithm matching 2020-09-18 10:51:55 +10:00
test-psk-no-id-sha2.conf Disallow SHA-2 ciphersuites from TLS 1.0 and 1.1 handshakes 2019-09-06 09:31:14 +10:00
test-psk-no-id.conf Disallow SHA-2 ciphersuites from TLS 1.0 and 1.1 handshakes 2019-09-06 09:31:14 +10:00
test-psk.conf Add TLS 1.2 ciphersuite ECDHE_PSK_WITH_AES_128_GCM_SHA256 from RFC 8442 2022-05-27 11:05:55 -04:00
test-rsapss.conf handle certificates with RSA-PSS signature that have RSAk public keys 2022-09-21 08:24:09 -06:00
test-sctp-sha2.conf SCTP Test 2020-07-20 15:03:48 -07:00
test-sctp.conf Purge IDEA cipher 2022-01-31 15:29:25 -05:00
test-sha2.conf Disallow SHA-2 ciphersuites from TLS 1.0 and 1.1 handshakes 2019-09-06 09:31:14 +10:00
test-sig.conf add wolfSSL_get_cipher_suite_from_name(); add flags arg to GetCipherSuiteFromName(); fix GetCipherSuiteFromName() to prevent spurious substring matching; add SUITE_ALIAS() macros for use defining CipherSuiteInfo, and add CipherSuiteInfo.flags slot and associated logic, to allow alternative cipher names to be recognized; add "CCM8" cipher name variants wherever applicable, including the unit.test conf files, to recognize and test the OpenSSL variants; add tests in client_test() and server_test() to confirm correct forward and backward mapping of cipher names/aliases. 2020-11-11 22:47:47 -06:00
test-sm2.conf SM2/SM3/SM4: Chinese cipher support 2023-07-04 13:36:28 +10:00
test-tls13-down.conf Support (D)TLS1.3 downgrade when using PSK 2024-03-29 18:04:30 +00:00
test-tls13-ecc.conf add wolfSSL_get_cipher_suite_from_name(); add flags arg to GetCipherSuiteFromName(); fix GetCipherSuiteFromName() to prevent spurious substring matching; add SUITE_ALIAS() macros for use defining CipherSuiteInfo, and add CipherSuiteInfo.flags slot and associated logic, to allow alternative cipher names to be recognized; add "CCM8" cipher name variants wherever applicable, including the unit.test conf files, to recognize and test the OpenSSL variants; add tests in client_test() and server_test() to confirm correct forward and backward mapping of cipher names/aliases. 2020-11-11 22:47:47 -06:00
test-tls13-pq-2.conf Remove kyber-90s and route all kyber through wolfcrypt. 2022-11-30 17:17:28 -05:00
test-tls13-pq.conf Kyber: Add option to build Kyber API 2022-09-13 10:07:27 -04:00
test-tls13-psk.conf TLS 1.3 PSK: add option to require only PSK with DHE 2023-02-16 09:21:29 +10:00
test-tls13.conf TLS 1.3: send ticket 2022-06-01 10:36:01 +10:00
test-tls-downgrade.conf Check for TLS downgrade 2021-04-23 14:45:35 -07:00
test-trustpeer.conf stunnel 5.61 support 2022-02-23 09:47:34 +01:00
test.conf ECDHE-PSK with x25519 2024-01-16 15:18:05 -08:00
TXT_DB.txt Internal unit tests 2020-12-17 14:26:49 +01:00
unit.c Improvement for the --enable-asn=nocrypt. Note: This option skips certificate signature checking, so make check TLS expected failures do not pass. Cleanup of the api.c headers / macros. 2024-08-01 10:27:22 -07:00
unit.h update copyright to 2024 2024-07-19 13:15:05 -06:00
utils.h update copyright to 2024 2024-07-19 13:15:05 -06:00
w64wrapper.c update copyright to 2024 2024-07-19 13:15:05 -06:00

Before creating any new configure files (.conf) read the CONF_FILES_README.md