mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 09:40:51 +02:00
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:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user