<!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/dueno">Daiki Ueno</a>
<a href="https://gitlab.com/gnutls/gnutls/-/issues/1146#note_559777770">commented</a>:
</p>
<div style="">
<p dir="auto"><a href="https://gitlab.com/tatsuhiro-t" data-user="433038" data-reference-type="user" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="Tatsuhiro Tsujikawa">@tatsuhiro-t</a> apologies for the long delay; I've just pushed a fix to the master.</p>
<p dir="auto">When I send early data with <code>gnutls-cli</code>:</p>
<pre class="code highlight js-syntax-highlight language-console" lang="console" v-pre="true"><code><span id="LC1" class="line" lang="console"><span class="gp">$</span><span class="w"> </span>./src/gnutls-cli <span class="nt">-p</span> 5556 127.0.0.1 <span class="nt">--priority</span> <span class="s2">"NORMAL:-VERS-ALL:+VERS-TLS1.3"</span> <span class="nt">--earlydata</span> <<span class="o">(</span><span class="nb">echo</span> <span class="s2">"earlydata"</span><span class="o">)</span> <span class="nt">--insecure</span> <span class="nt">--inline-commands</span></span>
<span id="LC2" class="line" lang="console"><span class="go">[...]</span></span>
<span id="LC3" class="line" lang="console"><span class="go">^resume^</span></span></code></pre>
<p dir="auto">against <code>openssl s_server</code>:</p>
<pre class="code highlight js-syntax-highlight language-console" lang="console" v-pre="true"><code><span id="LC1" class="line" lang="console"><span class="gp">$</span><span class="w"> </span>openssl s_server <span class="nt">-accept</span> 5556 <span class="nt">-keyform</span> pem <span class="nt">-certform</span> pem <span class="nt">-key</span> doc/credentials/x509/key-rsa.pem <span class="nt">-cert</span> doc/credentials/x509/cert-rsa.pem <span class="nt">-CAfile</span> doc/credentials/x509/ca.pem <span class="nt">-early_data</span></span></code></pre>
<p dir="auto">The packet sequence now look like:</p>
<pre class="code highlight js-syntax-highlight language-console" lang="console" v-pre="true"><code><span id="LC1" class="line" lang="console"><span class="go"> 24 10.300286012 127.0.0.1 → 127.0.0.1 TLSv1 482 Client Hello</span></span>
<span id="LC2" class="line" lang="console"><span class="go"> 25 10.300309262 127.0.0.1 → 127.0.0.1 TCP 66 5556 → 34978 [ACK] Seq=1 Ack=417 Win=65152 Len=0 TSval=362463014 TSecr=362463014</span></span>
<span id="LC3" class="line" lang="console"><span class="go"> 26 10.300359282 127.0.0.1 → 127.0.0.1 TLSv1.3 98 Application Data</span></span>
<span id="LC4" class="line" lang="console"><span class="go"> 27 10.300368542 127.0.0.1 → 127.0.0.1 TCP 66 5556 → 34978 [ACK] Seq=1 Ack=449 Win=65152 Len=0 TSval=362463014 TSecr=362463014</span></span>
<span id="LC5" class="line" lang="console"><span class="go"> 28 10.300880960 127.0.0.1 → 127.0.0.1 TLSv1.3 360 Server Hello, Change Cipher Spec, Encrypted Extensions, Finished</span></span>
<span id="LC6" class="line" lang="console"><span class="go"> 29 10.300897610 127.0.0.1 → 127.0.0.1 TCP 66 34978 → 5556 [ACK] Seq=449 Ack=295 Win=65280 Len=0 TSval=362463015 TSecr=362463015</span></span>
<span id="LC7" class="line" lang="console"><span class="go"> 30 10.301572698 127.0.0.1 → 127.0.0.1 TLSv1.3 92 End of Early Data</span></span></code></pre>
<p dir="auto">while previously it was:</p>
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 27 7.057079556 127.0.0.1 → 127.0.0.1 TLSv1 482 Client Hello</span>
<span id="LC2" class="line" lang="plaintext"> 28 7.057102046 127.0.0.1 → 127.0.0.1 TCP 66 5556 → 35090 [ACK] Seq=1 Ack=417 Win=65152 Len=0 TSval=362604732 TSecr=362604732</span>
<span id="LC3" class="line" lang="plaintext"> 29 7.057681034 127.0.0.1 → 127.0.0.1 TLSv1.3 360 Server Hello, Change Cipher Spec, Encrypted Extensions, Finished</span>
<span id="LC4" class="line" lang="plaintext"> 30 7.057709954 127.0.0.1 → 127.0.0.1 TCP 66 35090 → 5556 [ACK] Seq=417 Ack=295 Win=65280 Len=0 TSval=362604732 TSecr=362604732</span>
<span id="LC5" class="line" lang="plaintext"> 31 7.058178572 127.0.0.1 → 127.0.0.1 TLSv1.3 72 Change Cipher Spec</span>
<span id="LC6" class="line" lang="plaintext"> 32 7.058191232 127.0.0.1 → 127.0.0.1 TCP 66 5556 → 35090 [ACK] Seq=295 Ack=423 Win=65536 Len=0 TSval=362604733 TSecr=362604733</span>
<span id="LC7" class="line" lang="plaintext"> 33 7.058245462 127.0.0.1 → 127.0.0.1 TLSv1.3 98 Application Data</span>
<span id="LC8" class="line" lang="plaintext"> 34 7.058263172 127.0.0.1 → 127.0.0.1 TCP 66 5556 → 35090 [ACK] Seq=295 Ack=455 Win=65536 Len=0 TSval=362604733 TSecr=362604733</span>
<span id="LC9" class="line" lang="plaintext"> 35 7.058464272 127.0.0.1 → 127.0.0.1 TLSv1.3 92 End of Early Data</span></code></pre>
</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/1146#note_559777770">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/2a814ac64574ab153c8b754b080b0235/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/1146#note_559777770"}}</script>
</p>
</div>
</body>
</html>