<!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>
commented:
</p>
<div style="">
<blockquote dir="auto">
<p>(1) <a href="https://github.com/openssl/openssl/pull/8797/" rel="nofollow noreferrer noopener" target="_blank">https://github.com/openssl/openssl/pull/8797/</a> (2) <a href="https://github.com/tatsuhiro-t/openssl/tree/quic-draft-22" rel="nofollow noreferrer noopener" target="_blank">https://github.com/tatsuhiro-t/openssl/tree/quic-draft-22</a></p>
</blockquote>
<p dir="auto">Thank you. Looks like (1) is more up to date than (2) and in fact <a href="https://github.com/ngtcp2/ngtcp2/blob/draft-22/examples/client.cc#L2114" rel="nofollow noreferrer noopener" target="_blank">the draft-22 branch of ngtcp2</a> is assuming <a href="https://github.com/openssl/openssl/pull/8797/files?short_path=cfb0d9d#diff-cfb0d9dad7f909619348dc0758d9f300" rel="nofollow noreferrer noopener" target="_blank">the API from (1)</a>.</p>
<p dir="auto">So we basically would need the following things:</p>
<ol dir="auto">
<li>a callback to notify the key (epoch) change</li>
<li>a callback to write a Handshake messsage, when it is being sent</li>
<li>a callback to write an Alert messasge, when it is being sent</li>
<li>a callback to flush the message - not sure if this is really needed in GnuTLS</li>
<li>a function to push data received from the peer to the TLS layer</li>
</ol>
<p dir="auto">I guess (1) would be quite straightforward. Would you like to start with it? Basically you would need to hook the callback where new traffic keys are set, e.g.,:
<a href="https://gitlab.com/gnutls/gnutls/blob/master/lib/constate.c#L379">https://gitlab.com/gnutls/gnutls/blob/master/lib/constate.c#L379</a></p>
<p dir="auto">See also the NSS design document linked from my first comment.</p>
</div>


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

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


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