Use DER CA cert in multi-msg-record test for NO_CODING builds

wolfSSL builds configured with --enable-coding=no cannot parse PEM
because base64 decoding is disabled. Switch the example client's -A
argument to ca-cert.der so the test works in both PEM-enabled and
PEM-disabled builds.
This commit is contained in:
Juliusz Sosinowicz
2026-05-13 13:22:31 +02:00
parent 6357a0e5cf
commit 7cc972d5c7
+6 -2
View File
@@ -186,9 +186,13 @@ def _listen_socket():
def _run_wolf_client(port, version, cipher, extra=()):
"""Invoke the wolfSSL example client against 127.0.0.1:port."""
"""Invoke the wolfSSL example client against 127.0.0.1:port.
Uses the DER-encoded CA cert so the test works with wolfSSL builds
configured with NO_CODING (base64 decode disabled, no PEM support).
"""
cmd = [WOLF_CLIENT, "-h", "127.0.0.1", "-p", str(port),
"-v", version, "-A", os.path.join(CERT_DIR, "ca-cert.pem"),
"-v", version, "-A", os.path.join(CERT_DIR, "ca-cert.der"),
"-g", *extra]
if cipher:
cmd.extend(["-l", cipher])