<!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=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div style="">
<blockquote dir="auto">
<p>What about using GNUTLS_E_UNRECOGNIZED_NAME instead of GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER (in server_name.c / _gnutls_server_name_recv_params()) ?</p>
</blockquote>
<p dir="auto">IMO illegal_parameter is more appropriate here according to the RFC:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">   illegal_parameter:  A field in the handshake was incorrect or</span>
<span id="LC2" class="line" lang="plaintext">      inconsistent with other fields.  _This alert is used for errors</span>
<span id="LC3" class="line" lang="plaintext">      which conform to the formal protocol syntax but are otherwise</span>
<span id="LC4" class="line" lang="plaintext">      incorrect._</span></code></pre>
<p dir="auto">and</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">   unrecognized_name:  Sent by servers when no server exists identified</span>
<span id="LC2" class="line" lang="plaintext">      by the name provided by the client via the "server_name" extension</span>
<span id="LC3" class="line" lang="plaintext">      (see [RFC6066]).</span></code></pre>
<p dir="auto">That would allow clients to distinguish whether the error is in protocol level or configuration level.</p>
</div>


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

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/683#note_134637845">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/c3e6cc30ff5ea4a3a8fa7f7bc0cbb9d5/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/683#note_134637845"}}</script>
</p>
</div>
</body>
</html>