<!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/asosedkin">Alexander Sosedkin</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1249">#1249</a>
</p>
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto"><a href="https://gitlab.com/gnutls/gnutls/-/commit/41ab46a6e0a2406cd0646325b38b0bf627fd0557" data-original="41ab46a6e0a2406cd0646325b38b0bf627fd0557" data-link="false" data-link-reference="false" data-project="179611" data-commit="41ab46a6e0a2406cd0646325b38b0bf627fd0557" data-reference-type="commit" data-container="body" data-placement="top" title="Merge branch 'guile-egain-eintr' into 'master'" class="gfm gfm-commit has-tooltip">41ab46a6</a></p>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible:</h2>
<p dir="auto">always</p>
<p dir="auto">Executed against:
<code>./src/gnutls-serv -d9 --x509keyfile keys/server/key.pem --x509certfile keys/server/cert.pem --priority=NORMAL</code></p>
<p dir="auto">What works:</p>
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">./src/gnutls-serv -d9 --x509keyfile keys/server/key.pem --x509certfile keys/server/cert.pem --priority=NORMAL</span>
<span id="LC2" class="line" lang="plaintext">./src/gnutls-serv -d9 --x509keyfile keys/server/key.pem --x509certfile keys/server/cert.pem --priority=NORMAL:-GROUP-ALL:+GROUP-X25519</span>
<span id="LC3" class="line" lang="plaintext">./src/gnutls-serv -d9 --x509keyfile keys/server/key.pem --x509certfile keys/server/cert.pem --priority=NORMAL:-GROUP-ALL:+GROUP-X448</span></code></pre>
<p dir="auto">What doesn't:</p>
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">./src/gnutls-serv -d9 --x509keyfile keys/server/key.pem --x509certfile keys/server/cert.pem --priority=NORMAL:-GROUP-ALL:+GROUP-X448:+GROUP-X25519</span>
<span id="LC2" class="line" lang="plaintext">./src/gnutls-serv -d9 --x509keyfile keys/server/key.pem --x509certfile keys/server/cert.pem --priority=NORMAL:-GROUP-ALL:+GROUP-X25519:+GROUP-X448</span></code></pre>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">|<4>| EXT[0x11af2a0]: Parsing extension 'Key Share/51' (36 bytes)</span>
<span id="LC2" class="line" lang="plaintext">|<4>| HSK[0x11af2a0]: Selected group X25519 (6)</span>
<span id="LC3" class="line" lang="plaintext">|<3>| ASSERT: key_share.c[client_use_key_share]:453</span>
<span id="LC4" class="line" lang="plaintext">|<3>| ASSERT: key_share.c[key_share_recv_params]:653</span>
<span id="LC5" class="line" lang="plaintext">|<3>| ASSERT: hello_ext.c[hello_ext_parse]:275</span>
<span id="LC6" class="line" lang="plaintext">|<3>| ASSERT: extv.c[_gnutls_extv_parse]:69</span>
<span id="LC7" class="line" lang="plaintext">|<3>| ASSERT: hello_ext.c[_gnutls_parse_hello_extensions]:308</span>
<span id="LC8" class="line" lang="plaintext">|<3>| ASSERT: handshake.c[read_server_hello]:2080</span>
<span id="LC9" class="line" lang="plaintext">|<3>| ASSERT: handshake.c[_gnutls_recv_handshake]:1648</span>
<span id="LC10" class="line" lang="plaintext">|<3>| ASSERT: handshake.c[handshake_client]:3055</span>
<span id="LC11" class="line" lang="plaintext">*** Fatal error: An illegal parameter has been received.</span>
<span id="LC12" class="line" lang="plaintext">|<5>| REC: Sending Alert[2|47] - Illegal parameter</span></code></pre>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">connection established</p>
<h2 dir="auto">
<a id="user-content-notes" class="anchor" href="#notes" aria-hidden="true"></a>Notes:</h2>
<p dir="auto">my limited debugging shows that the values of <code>session->key.kshare.ecdhx_params</code> in the comparison at <code>key_share.c[client_use_key_share]:452</code> seem to match the other curve, not the <code>group->pk</code> one</p>
</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/1249">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/cc0f95702d96ae67d129cc15d1372928/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/1249"}}</script>
</p>
</div>
</body>
</html>