wolfssl/scripts
Tobias Frauenschläger f0b78fb9ba Complete a TLS 1.3 handshake with the ECC PK callbacks
myEccKeyGen() generated the key share straight into the library's key object,
and myEccSharedSecret() is handed only the peer's key, so a TLS 1.3 client had
no private key left to reach and every handshake ended with:

  wolfSSL_connect error -170, ECC input argument wrong type, invalid input

TEST_PK_PRIVKEY already kept the key on the application's side, which is what
a real PK-callback application does anyway; it just was not the default. Keep
it whenever the connection is TLS or DTLS v1.3 as well, and have the shared
secret callback pick the key by the same question its key gen asked, not by a
flag key gen has not set yet. The union holding it stops being
TEST_PK_PRIVKEY-only, and its comment stops naming TLS v1.2 as the version
that needs it.

Neither example zeroed its PkCbInfo, so hasKeyGen started as stack garbage.
Only the TEST_PK_PRIVKEY paths read it before, which hid that; zero it in
both.

scripts/pkcallbacks.test only ever ran the build's default version, and that
is TLS v1.2 wherever it is compiled in, so none of the above was covered. Run
the default and then each version the build has.
2026-09-08 18:56:18 +02:00
..
bench
testdata
advisory-vex-overlay.example.json
advisory-vex-overlay.schema.json
aria-cmake-build-test.sh
asn1_oid_sum.pl add ssh server extended key usage parsing and missing ssh extended key parsing to asn template from asn orig 2026-09-02 23:03:51 -06:00
benchmark.test Regression testing fixes 2026-09-03 20:59:54 +10:00
benchmark_compare.sh
bomsh_verify.py
cleanup_testfiles.sh
crl-gen-openssl.test
crl-revoked.test
csaf_validate.mjs
cwe-names.json
dertoc.pl
dtls.test Regression testing fixes 2026-09-03 20:59:54 +10:00
dtlscid.test Regression testing fixes 2026-09-03 20:59:54 +10:00
external.test Send SNI in external.test so the peer returns its own certificate 2026-09-04 15:02:39 +02:00
falcon-interop.c
gen-advisory
gen-sbom
google.test
include.am Address review findings on the sniffer Encrypt-Then-MAC fix 2026-09-01 09:33:17 +02:00
makedistsmall.sh
memtest.sh
multi-msg-record.py Regression testing fixes 2026-09-03 20:59:54 +10:00
multi-msg-record.test
ocsp-responder-openssl-interop.test Regression testing fixes 2026-09-03 20:59:54 +10:00
ocsp-stapling-with-ca-as-responder.test Regression testing fixes 2026-09-03 20:59:54 +10:00
ocsp-stapling-with-wolfssl-responder.test Regression testing fixes 2026-09-03 20:59:54 +10:00
ocsp-stapling.test Regression testing fixes 2026-09-03 20:59:54 +10:00
ocsp-stapling2.test Regression testing fixes 2026-09-03 20:59:54 +10:00
ocsp-stapling_tls13multi.test Regression testing fixes 2026-09-03 20:59:54 +10:00
ocsp.test
openssl.test Regression testing fixes 2026-09-03 20:59:54 +10:00
openssl_srtp.test Regression testing fixes 2026-09-03 20:59:54 +10:00
pem.test
ping.test
pkcallbacks.test Complete a TLS 1.3 handshake with the ECC PK callbacks 2026-09-08 18:56:18 +02:00
psk.test Address review: tell a timeout kill apart from an expected failure 2026-08-17 03:35:10 +00:00
puf_bch_genpoly.py
resume.test
rsapss.test Regression testing fixes 2026-09-03 20:59:54 +10:00
sbom.am
sniffer-gen.sh Address review findings on the sniffer Encrypt-Then-MAC fix 2026-09-01 09:33:17 +02:00
sniffer-ipv6.pcap Address review findings on the sniffer Encrypt-Then-MAC fix 2026-09-01 09:33:17 +02:00
sniffer-static-rsa.pcap Address review findings on the sniffer Encrypt-Then-MAC fix 2026-09-01 09:33:17 +02:00
sniffer-testsuite.test Fix threaded snifftest dropping every queued packet 2026-09-01 09:33:17 +02:00
sniffer-tls12-etm-keylog.out Address review findings on the sniffer Encrypt-Then-MAC fix 2026-09-01 09:33:17 +02:00
sniffer-tls12-etm-keylog.pcap Address review findings on the sniffer Encrypt-Then-MAC fix 2026-09-01 09:33:17 +02:00
sniffer-tls12-etm-keylog.sslkeylog Address review findings on the sniffer Encrypt-Then-MAC fix 2026-09-01 09:33:17 +02:00
sniffer-tls12-etm.out Address review findings on the sniffer Encrypt-Then-MAC fix 2026-09-01 09:33:17 +02:00
sniffer-tls12-etm.pcap Address review findings on the sniffer Encrypt-Then-MAC fix 2026-09-01 09:33:17 +02:00
sniffer-tls12-keylog.out Address review findings on the sniffer Encrypt-Then-MAC fix 2026-09-01 09:33:17 +02:00
sniffer-tls12-keylog.pcap
sniffer-tls12-keylog.sslkeylog
sniffer-tls13-dh-resume.pcap
sniffer-tls13-dh.pcap
sniffer-tls13-ecc-resume.pcap
sniffer-tls13-ecc.pcap
sniffer-tls13-hrr.pcap
sniffer-tls13-keylog.out Address review findings on the sniffer Encrypt-Then-MAC fix 2026-09-01 09:33:17 +02:00
sniffer-tls13-keylog.pcap
sniffer-tls13-keylog.sslkeylog
sniffer-tls13-x25519-resume.pcap Give the sniffer's X25519 static ephemeral key an RNG 2026-09-01 09:33:17 +02:00
sniffer-tls13-x25519.pcap Give the sniffer's X25519 static ephemeral key an RNG 2026-09-01 09:33:17 +02:00
stm32l4-v4_0_1_build.sh
test_csaf_validate.mjs
test_gen_advisory.py
test_gen_sbom.py
tls13.test Address review: tell a timeout kill apart from an expected failure 2026-08-17 03:35:10 +00:00
trusted_peer.test Address review: tell a timeout kill apart from an expected failure 2026-08-17 03:35:10 +00:00
tsp.test
unit.test.in
user_settings_asm.sh