<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #777;">
<a href="https://gitlab.com/tomato42">Hubert Kario (@mention me if you need reply)</a> created an issue:
</p>
<div></div>
<p dir="auto">I was testing a new tlsfuzzer script for PHA and it doesn't look to me like it is possible to test PHA with a single script against one instance of GnuTLS.</p>
<p dir="auto"><a href="https://github.com/tomato42/tlsfuzzer/pull/551" rel="nofollow noreferrer noopener" target="_blank">https://github.com/tomato42/tlsfuzzer/pull/551</a></p>
<p dir="auto">I executed the script with</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">--query '**REAUTH**                                </span>
<span id="LC2" class="line" lang="plaintext">' --pha-as-reply</span></code></pre>
<p dir="auto">options set, and started <code>gnutls-serv</code> with <code>--echo</code>.</p>
<p dir="auto">While executing the 'post-handshake authentication' script works as expected, even multiple times, any other conversation, including 'post-handshake authentication with no client cert' results in an abort from server:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">|<3>| ASSERT: buffers.c[_gnutls_io_read_buffered]:589</span>
<span id="LC2" class="line" lang="plaintext">|<3>| ASSERT: tls13/certificate.c[_gnutls13_recv_certificate]:59</span>
<span id="LC3" class="line" lang="plaintext">|<3>| ASSERT: buffers.c[get_last_packet]:1168</span>
<span id="LC4" class="line" lang="plaintext">|<3>| ASSERT: buffers.c[_gnutls_io_read_buffered]:589</span>
<span id="LC5" class="line" lang="plaintext">|<3>| ASSERT: tls13/certificate.c[_gnutls13_recv_certificate]:59</span>
<span id="LC6" class="line" lang="plaintext">|<3>| ASSERT: buffers.c[get_last_packet]:1168</span>
<span id="LC7" class="line" lang="plaintext">|<5>| REC[0xcad710]: SSL 3.3 Application Data packet received. Epoch 2, length: 37</span>
<span id="LC8" class="line" lang="plaintext">|<5>| REC[0xcad710]: Expected Packet Handshake(22)</span>
<span id="LC9" class="line" lang="plaintext">|<5>| REC[0xcad710]: Received Packet Application Data(23) with length: 37</span>
<span id="LC10" class="line" lang="plaintext">|<5>| REC[0xcad710]: Decrypted Packet[1] Handshake(22) with length: 20</span>
<span id="LC11" class="line" lang="plaintext">|<4>| HSK[0xcad710]: CERTIFICATE (11) was received. Length 16[16], frag offset 0, frag length: 16, sequence: 0</span>
<span id="LC12" class="line" lang="plaintext">|<4>| HSK[0xcad710]: parsing certificate message</span>
<span id="LC13" class="line" lang="plaintext">|<3>| ASSERT: tls13/certificate.c[parse_cert_list]:407</span>
<span id="LC14" class="line" lang="plaintext">|<3>| ASSERT: tls13/certificate.c[_gnutls13_recv_certificate]:110</span>
<span id="LC15" class="line" lang="plaintext">|<3>| ASSERT: tls13/post_handshake.c[_gnutls13_reauth_server]:175</span>
<span id="LC16" class="line" lang="plaintext">reauth: Certificate is required.</span>
<span id="LC17" class="line" lang="plaintext">$ </span></code></pre>
<p dir="auto">and no Alert sent to client:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Error encountered while processing node ExpectNewSessionTicket(note='second set') (child: ExpectNewSessionTicket(note='second set')) with last message being: None</span>
<span id="LC2" class="line" lang="plaintext">Error while processing</span>
<span id="LC3" class="line" lang="plaintext">Traceback (most recent call last):</span>
<span id="LC4" class="line" lang="plaintext">  File "scripts/test-tls13-post-handshake-auth.py", line 446, in main</span>
<span id="LC5" class="line" lang="plaintext">    runner.run()</span>
<span id="LC6" class="line" lang="plaintext">  File "/home/hkario/dev/tlsfuzzer/tlsfuzzer/runner.py", line 221, in run</span>
<span id="LC7" class="line" lang="plaintext">    "Unexpected closure from peer")</span>
<span id="LC8" class="line" lang="plaintext">AssertionError: Unexpected closure from peer</span></code></pre>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/868">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/e313737ea64271badb404efacce77a12/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/868"}}</script>


</p>
</div>
</body>
</html>