<!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 style="">
<p dir="auto">Update: while playing with this, it does not seem to be possible to use <code>p11_kit_module_get_name</code> for manually loaded modules, it simply returns NULL:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Breakpoint 1, 0x00007ffff7bceb70 in p11_kit_config_option () from /usr/lib/libp11-kit.so.0</span>
<span id="LC2" class="line" lang="plaintext">(gdb) bt</span>
<span id="LC3" class="line" lang="plaintext">#0  0x00007ffff7bceb70 in p11_kit_config_option () from /usr/lib/libp11-kit.so.0</span>
<span id="LC4" class="line" lang="plaintext">#1  0x00007ffff7e617cb in ?? () from /usr/lib/libgnutls.so.30</span>
<span id="LC5" class="line" lang="plaintext">#2  0x00007ffff7e679b3 in ?? () from /usr/lib/libgnutls.so.30</span>
<span id="LC6" class="line" lang="plaintext">#3  0x00007ffff7e68324 in gnutls_pkcs11_token_get_info () from /usr/lib/libgnutls.so.30</span>
<span id="LC7" class="line" lang="plaintext">#4  0x0000555555684f07 in print_info (url="pkcs11:model=SoftHSM%20v2;...", label="Mod", type=GNUTLS_PKCS11_TOKEN_MODNAME) at main.c:119</span>
<span id="LC8" class="line" lang="plaintext">...</span>
<span id="LC9" class="line" lang="plaintext">(gdb) p (char*)p11_kit_module_get_name($rdi)</span>
<span id="LC10" class="line" lang="plaintext">$9 = 0x0</span>
<span id="LC11" class="line" lang="plaintext">(gdb) p (char*)p11_kit_module_get_filename($rdi)</span>
<span id="LC12" class="line" lang="plaintext">$10 = 0x606000001d00 "/tmp/softhsm/prefix/lib64/softhsm/libsofthsm2.so"</span></code></pre>
<p dir="auto">Reproduced with:</p>
<ul dir="auto">
<li>Distribution: Arch Linux</li>
<li>p11-kit 0.23.14-1</li>
<li>gnutls 3.6.5-1</li>
</ul>
</div>


</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#note_124700682">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/4d10d957bfc4d6724633eaf6d46ccc90/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#note_124700682"}}</script>
</p>
</div>
</body>
</html>