* Defaults to "./downloads" if not set.
* - SSLKEYLOGFILE: specifies that keylogging should be preformed on the server
* should be set to a file name to record keylog data to
+ * - NO_ADDR_VALIDATE: Disables server address validation of clients
*
*/
int ok = 0;
SSL *listener, *conn, *stream;
unsigned long errcode;
+ uint64_t flags = 0;
+
+ /*
+ * If NO_ADDR_VALIDATE exists in our environment
+ * then disable address validation on our listener
+ */
+ if (getenv("NO_ADDR_VALIDATE") != NULL)
+ flags |= SSL_LISTENER_FLAG_NO_VALIDATE;
/*
* Create a new QUIC listener. Listeners, and other QUIC objects, default
* to operating in blocking mode. The configured behaviour is inherited by
* child objects.
*/
- if ((listener = SSL_new_listener(ctx, 0)) == NULL)
+ if ((listener = SSL_new_listener(ctx, flags)) == NULL)
goto err;
/* Provide the listener with our UDP socket. */
echo "TESTCASE is $TESTCASE"
rm -f $CURLRC
case "$TESTCASE" in
- "handshake"|"transfer"|"retry"|"resumption")
+ "handshake")
+ NO_ADDR_VALIDATE=yes SSLKEYLOGFILE=/logs/keys.log FILEPREFIX=/www quic-hq-interop-server 443 /certs/cert.pem /certs/priv.key
+ ;;
+ "transfer"|"retry"|"resumption")
SSLKEYLOGFILE=/logs/keys.log FILEPREFIX=/www quic-hq-interop-server 443 /certs/cert.pem /certs/priv.key
;;
"chacha20")