<!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/dueno">Daiki Ueno</a> created an issue <a href="https://gitlab.com/gnutls/gnutls/-/issues/1212">#1212</a>:
</p>
<div></div>
<p dir="auto">The documentation about currently says:</p>
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">The GnuTLS library is thread safe by design, meaning that objects of the</span>
<span id="LC2" class="line" lang="plaintext">library such as TLS sessions, can be safely divided across threads as</span>
<span id="LC3" class="line" lang="plaintext">long as a single thread accesses a single object. This is sufficient to</span>
<span id="LC4" class="line" lang="plaintext">support a server which handles several sessions per thread. Read-only</span>
<span id="LC5" class="line" lang="plaintext">access to objects, for example the credentials holding structures, is</span>
<span id="LC6" class="line" lang="plaintext">also thread-safe.</span></code></pre>
<p dir="auto">The last statement implies that the read-only usage of <code>gnutls_x509_trust_list_t</code>, such as for verifying certificate chain with already populated list, should be performed from multiple threads against the single <code>gnutls_x509_trust_list_t</code> object. This is apparently not true with the use with PKCS#11 trust store:
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1937513#c33" rel="nofollow noreferrer noopener" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1937513#c33</a></p>
<p dir="auto">We should either document this as an exception or actually make it thread safe.</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/1212">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/b95eb5efef0e0cdb49f1190b7b07d2b4/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/1212"}}</script>
</p>
</div>
</body>
</html>