<!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: #666;">
<a href="https://gitlab.com/hare1712">Hannes Reinecke</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1323">#1323</a>
</p>
<div></div>
<p dir="auto">gnutls has a hard limit of 128 characters in the TLS PSK username. While this is mandatory for RFC 4279, this is a <em>lower</em> bound on the length of the username. And TLS 1.3 does not impose such a limit, causing gnutls to fail when attempting to use longer usernames (eg as mandated by NVMe 2.0):</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style="border-radius: 2px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid #dbdbdb;"><code><span id="LC1" class="line" lang="plaintext">Using PSK identity 'NVMe0R01 nqn.2014-08.org.nvmexpress:uuid:13c0fc1d-adba-42b0-8121-c5034971d2a4 nqn.2014-08.org.nvmexpress:uuid:62f37f51-0cc7-46d5-9865-4de22e81bd9d'</span>
<span id="LC2" class="line" lang="plaintext">./../auth/psk.h:74: _gnutls_copy_psk_username: Assertion `sizeof(info->username) > username->size' failed.</span></code></pre>
<copy-code></copy-code>
</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/1323">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/8a22b71a8e95bdb4661d8fecc1e5ace6/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/1323"}}</script>
</p>
</div>
</body>
</html>