<!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: #777;">
<a href="https://gitlab.com/dueno">Daiki Ueno</a> created an issue:
</p>
<div></div>
<p dir="auto">As mentioned in:
<a href="https://gitlab.com/gnutls/gnutls/issues/826#note_213450784" data-original="https://gitlab.com/gnutls/gnutls/issues/826#note_213450784" data-link="false" data-link-reference="true" data-project="179611" data-issue="24453003" data-reference-type="issue" data-container="body" data-placement="bottom" title="Support QUIC TLS API" class="gfm gfm-issue has-tooltip">#826 (comment 213450784)</a></p>
<p dir="auto">To install packet protection keys from TLS, we need a way to be notified when a new secret is set in TLS. This can be implemented by providing a callback.</p>
<p dir="auto">The API would looks something like:</p>
<pre class="code highlight js-syntax-highlight c" lang="c" v-pre="true"><code><span id="LC1" class="line" lang="c"><span class="k">typedef</span> <span class="nf">void</span> <span class="p">(</span><span class="o">*</span><span class="n">gnutls_secret_hook_func</span><span class="p">)(</span><span class="n">gnutls_session_t</span><span class="p">,</span> <span class="kt">unsigned</span> <span class="n">epoch</span><span class="p">,</span> <span class="kt">unsigned</span> <span class="n">incoming</span><span class="p">,</span> <span class="k">const</span> <span class="n">gnutls_datum_t</span> <span class="o">*</span><span class="n">secret</span><span class="p">);</span></span>
<span id="LC2" class="line" lang="c"><span class="kt">void</span> <span class="nf">gnutls_session_set_secret_hook_function</span><span class="p">(</span><span class="n">gnutls_session_t</span> <span class="n">session</span><span class="p">,</span> <span class="n">gnutls_secret_hook_func</span> <span class="n">func</span><span class="p">);</span></span></code></pre>

</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/852">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/4d2fece3d2e785ceb2463e2d50a05c12/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/852"}}</script>


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