<!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=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">When a provider is manually loaded, the module name is not available for some reason. This can also be reproduced with <code>p11tool</code>.</p>
<p dir="auto">There is another example of this issue here reported for Fedora 28:
<a href="https://github.com/p11-glue/p11-kit/issues/172#issuecomment-398852836" rel="nofollow noreferrer noopener" target="_blank">https://github.com/p11-glue/p11-kit/issues/172#issuecomment-398852836</a></p>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto">3.5.18-1ubuntu1</p>
<h2 dir="auto">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)</h2>
<p dir="auto">Ubuntu 18.04.</p>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible:</h2>
<p dir="auto">The following outputs should be equivalent:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">$ p11tool --list-tokens</span>
<span id="LC2" class="line" lang="plaintext">$ p11tool --list-tokens --provider=/usr/lib/softhsm/libsofthsm2.so</span></code></pre>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">$ p11tool --list-tokens --provider=/usr/lib/softhsm/libsofthsm2.so</span>
<span id="LC2" class="line" lang="plaintext">Token 0:</span>
<span id="LC3" class="line" lang="plaintext">        URL: pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=f7101470c14e7525;token=mytoken</span>
<span id="LC4" class="line" lang="plaintext">        Label: mytoken</span>
<span id="LC5" class="line" lang="plaintext">        Type: Generic token</span>
<span id="LC6" class="line" lang="plaintext">        Manufacturer: SoftHSM project</span>
<span id="LC7" class="line" lang="plaintext">        Model: SoftHSM v2</span>
<span id="LC8" class="line" lang="plaintext">        Serial: f7101470c14e7525</span>
<span id="LC9" class="line" lang="plaintext">        Module: (null)</span></code></pre>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">$ p11tool --list-tokens --provider=/usr/lib/softhsm/libsofthsm2.so</span>
<span id="LC2" class="line" lang="plaintext">Token 0:</span>
<span id="LC3" class="line" lang="plaintext">        URL: pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=f7101470c14e7525;token=mytoken</span>
<span id="LC4" class="line" lang="plaintext">        Label: mytoken</span>
<span id="LC5" class="line" lang="plaintext">        Type: Generic token</span>
<span id="LC6" class="line" lang="plaintext">        Manufacturer: SoftHSM project</span>
<span id="LC7" class="line" lang="plaintext">        Model: SoftHSM v2</span>
<span id="LC8" class="line" lang="plaintext">        Serial: f7101470c14e7525</span>
<span id="LC9" class="line" lang="plaintext">        Module: /usr/lib/softhsm/libsofthsm2.so</span></code></pre>

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

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/633">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/dad6808ad9a23dcb2e79b75c15f907ec/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/633"}}</script>
</p>
</div>
</body>
</html>