Skip to content

Commit

Permalink
disable interop tests in proxied environments
Browse files Browse the repository at this point in the history
  • Loading branch information
baentsch committed Oct 17, 2023
1 parent afd36e7 commit 8675edd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/oqsprovider-externalinterop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ if [ -z "$DYLD_LIBRARY_PATH" ]; then
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
fi

# Disable this test if HTTP_PROXY or HTTPS_PROXY is set
if [ -v HTTP_PROXY ] || [ -v HTTPS_PROXY ]; then
echo "HTTP(S) proxy vars set. Disabling interop test."
exit 0
fi

echo " Cloudflare:"
export OQS_CODEPOINT_X25519_KYBER512=65072
(echo -e "GET /cdn-cgi/trace HTTP/1.1\nHost: cloudflare.com\n\n"; sleep 1; echo $'\cc') | $OPENSSL_APP s_client -connect pq.cloudflareresearch.com:443 -groups x25519_kyber768 -servername cloudflare.com -ign_eof 2>/dev/null | grep kex=X25519Kyber768Draft00
Expand Down

0 comments on commit 8675edd

Please sign in to comment.