[gnutls-devel] GnuTLS | GNUTLS_PKCS11_TOKEN_MODNAME is unavailable when a provider is manually loaded (#633)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Dec 13 14:15:12 CET 2018

Update: while playing with this, it does not seem to be possible to use `p11_kit_module_get_name` for manually loaded modules, it simply returns NULL:
Breakpoint 1, 0x00007ffff7bceb70 in p11_kit_config_option () from /usr/lib/libp11-kit.so.0
(gdb) bt
#0  0x00007ffff7bceb70 in p11_kit_config_option () from /usr/lib/libp11-kit.so.0
#1  0x00007ffff7e617cb in ?? () from /usr/lib/libgnutls.so.30
#2  0x00007ffff7e679b3 in ?? () from /usr/lib/libgnutls.so.30
#3  0x00007ffff7e68324 in gnutls_pkcs11_token_get_info () from /usr/lib/libgnutls.so.30
#4  0x0000555555684f07 in print_info (url="pkcs11:model=SoftHSM%20v2;...", label="Mod", type=GNUTLS_PKCS11_TOKEN_MODNAME) at main.c:119
(gdb) p (char*)p11_kit_module_get_name($rdi)
$9 = 0x0
(gdb) p (char*)p11_kit_module_get_filename($rdi)
$10 = 0x606000001d00 "/tmp/softhsm/prefix/lib64/softhsm/libsofthsm2.so"

Reproduced with:
- Distribution: Arch Linux
- p11-kit 0.23.14-1
- gnutls 3.6.5-1

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/633#note_124700682
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181213/922d29d4/attachment.html>

More information about the Gnutls-devel mailing list