<!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="">
<p dir="auto">The check is exercised in two occasions:</p>
<ol dir="auto">
<li>called from <code>gnutls_pkcs11_add_provider</code> to manually register the module</li>
<li>called from <code>gnutls_pkcs11_init</code> to automatically enumerate registered modules</li>
</ol>
<p dir="auto">For (1), I think we can simply skip the check, because that is user's intention obviously. For (2), I would suggest adding a flag, say <code>GNUTLS_PKCS11_FLAG_ALLOW_DUPLICATE</code>, to explicitly skip the check. Then we could expose it from <code>p11tool</code>.</p>
<p dir="auto">How does this sound?</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/961#note_315211225">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/6acf482dd40afc820ec2e6c90d57e8ae/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/961#note_315211225"}}</script>


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