mirror of https://github.com/wolfSSL/wolfssl.git
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. |
||
|---|---|---|
| .. | ||
| bench | ||
| testdata | ||
| advisory-vex-overlay.example.json | ||
| advisory-vex-overlay.schema.json | ||
| aria-cmake-build-test.sh | ||
| asn1_oid_sum.pl | ||
| benchmark.test | ||
| 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 | ||
| dtlscid.test | ||
| external.test | ||
| falcon-interop.c | ||
| gen-advisory | ||
| gen-sbom | ||
| google.test | ||
| include.am | ||
| makedistsmall.sh | ||
| memtest.sh | ||
| multi-msg-record.py | ||
| multi-msg-record.test | ||
| ocsp-responder-openssl-interop.test | ||
| ocsp-stapling-with-ca-as-responder.test | ||
| ocsp-stapling-with-wolfssl-responder.test | ||
| ocsp-stapling.test | ||
| ocsp-stapling2.test | ||
| ocsp-stapling_tls13multi.test | ||
| ocsp.test | ||
| openssl.test | ||
| openssl_srtp.test | ||
| pem.test | ||
| ping.test | ||
| pkcallbacks.test | ||
| psk.test | ||
| puf_bch_genpoly.py | ||
| resume.test | ||
| rsapss.test | ||
| sbom.am | ||
| sniffer-gen.sh | ||
| sniffer-ipv6.pcap | ||
| sniffer-static-rsa.pcap | ||
| sniffer-testsuite.test | ||
| sniffer-tls12-etm-keylog.out | ||
| sniffer-tls12-etm-keylog.pcap | ||
| sniffer-tls12-etm-keylog.sslkeylog | ||
| sniffer-tls12-etm.out | ||
| sniffer-tls12-etm.pcap | ||
| sniffer-tls12-keylog.out | ||
| 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 | ||
| sniffer-tls13-keylog.pcap | ||
| sniffer-tls13-keylog.sslkeylog | ||
| sniffer-tls13-x25519-resume.pcap | ||
| sniffer-tls13-x25519.pcap | ||
| stm32l4-v4_0_1_build.sh | ||
| test_csaf_validate.mjs | ||
| test_gen_advisory.py | ||
| test_gen_sbom.py | ||
| tls13.test | ||
| trusted_peer.test | ||
| tsp.test | ||
| unit.test.in | ||
| user_settings_asm.sh | ||