L_QUIC_client_thread_method(3)</a> when we construct the <b>SSL_CTX</b> as shown below:</p>

<pre><code>ctx = SSL_CTX_new(OSSL_QUIC_client_thread_method());
if (ctx == NULL) {
    printf(&quot;Failed to create the SSL_CTX\n&quot;);
    goto end;
}</code></pre>

<h2 id="Performing-the-handshake">Performing the handshake</h2>

<p>As in the demo for a blocking QUIC client we use the <a href="../man3/SSL_connect.html">SSL_connect(3)</a> function to perform the handshake with the server. Since we are using a non