<!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 style="color: #777777;">
<a href="https://gitlab.com/tomato42">Hubert Kario (@mention me if you need reply)</a>
commented on a
<a href="https://gitlab.com/gnutls/gnutls/-/issues/1230#note_572903471">discussion</a>:
</p>
<div style="">
<p dir="auto">Actually RFC 8446 is quite clear on this, see <a href="https://datatracker.ietf.org/doc/html/rfc8446#page-79" rel="nofollow noreferrer noopener" target="_blank">https://datatracker.ietf.org/doc/html/rfc8446#page-79</a>:</p>
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">   legacy_record_version:  MUST be set to 0x0303 for all records</span>
<span id="LC2" class="line" lang="plaintext">      generated by a TLS 1.3 implementation other than an initial</span>
<span id="LC3" class="line" lang="plaintext">      ClientHello (i.e., one not generated after a HelloRetryRequest),</span>
<span id="LC4" class="line" lang="plaintext">      where it MAY also be 0x0301 for compatibility purposes.  This</span>
<span id="LC5" class="line" lang="plaintext">      field is deprecated and MUST be ignored for all purposes.</span>
<span id="LC6" class="line" lang="plaintext">      Previous versions of TLS would use other values in this field</span>
<span id="LC7" class="line" lang="plaintext">      under some circumstances.</span></code></pre>
<p dir="auto">The key sentence being "MUST be ignored for all purposes".</p>
<p dir="auto">As such, the message should be parsed by GnuTLS as well-formed Alert, but since the client MUST send ClientHello as the first message, the GnuTLS server should abort with <code>unexpected_message</code>.</p>
</div>


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

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1230#note_572903471">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/e5057df03c6c029e6d84388f4d836dd2/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/1230#note_572903471"}}</script>


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