<!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 send TLS messages in QUIC packets, we need a way to capture the TLS messages being sent. This can be implemented by providing a callback intercepting messages from TLS stack.  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="cm">/* content_type_t is currently private */</span></span>
<span id="LC2" class="line" lang="c"><span class="k">typedef</span> <span class="nf">int</span> <span class="p">(</span><span class="o">*</span><span class="n">gnutls_record_write_callback_t</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="n">content_type_t</span><span class="p">,</span> <span class="n">gnutls_datum_t</span> <span class="o">*</span><span class="n">data</span><span class="p">);</span></span>
<span id="LC3" class="line" lang="c"><span class="kt">void</span> <span class="nf">gnutls_record_set_write_callback</span><span class="p">(</span><span class="n">gnutls_session_t</span><span class="p">,</span> <span class="n">gnutls_record_write_callback_t</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/849">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/b70d89aa4c4e232aa5836d8215063efa/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/849"}}</script>


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