]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Update quic interop docker container for chacha20
authorNeil Horman <nhorman@openssl.org>
Tue, 24 Sep 2024 08:31:47 +0000 (04:31 -0400)
committerTomas Mraz <tomas@openssl.org>
Fri, 4 Oct 2024 15:42:49 +0000 (17:42 +0200)
Need to update the docker interop container to use the quic-hq-interop
client so that the right alpn is negotiated for chacha20 testing

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25528)

test/quic-openssl-docker/run_endpoint.sh

index 1c4d7c1d5b0849e23ea1a59d2cd113b44c3ec62b..db26e7c426f3e4fd1ac827f643ef241f968fd696 100644 (file)
@@ -69,8 +69,14 @@ if [ "$ROLE" == "client" ]; then
        exit 0
        ;;
     "chacha20")
-       OUTFILE=$(basename $REQUESTS)
-       SSL_CERT_FILE=/certs/ca.pem curl --verbose --tlsv1.3 --tls13-ciphers TLS_CHACHA20_POLY1305_SHA256 --http3 -o /downloads/$OUTFILE $REQUESTS || exit 1
+       for req in $REQUESTS
+       do
+           OUTFILE=$(basename $req)
+           echo -n "$OUTFILE " > ./reqfile.txt
+           HOSTNAME=$(printf "%s\n" "$req" | sed -ne 's,^https://\([^/:]*\).*,\1,p')
+           HOSTPORT=$(printf "%s\n" "$req" | sed -ne 's,^https://[^:/]*:\([^/]*\).*,\1,p')
+       done
+       SSL_CIPHER_SUITES=TLS_CHACHA20_POLY1305_SHA256 SSL_SESSION_FILE=./session.db SSLKEYLOGFILE=/logs/keys.log SSL_CERT_FILE=/certs/ca.pem SSL_CERT_DIR=/certs quic-hq-interop $HOSTNAME $HOSTPORT ./reqfile.txt || exit 1
        exit 0
        ;; 
     *)