[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 Nov 29 20:09:17 CET 2018


New Issue was created.

Issue 633: https://gitlab.com/gnutls/gnutls/issues/633
Author:    Peter Wu
Assignee:  

## Description of problem:
When a provider is manually loaded, the module name is not available for some reason. This can also be reproduced with `p11tool`.

There is another example of this issue here reported for Fedora 28:
https://github.com/p11-glue/p11-kit/issues/172#issuecomment-398852836

## Version of gnutls used:
3.5.18-1ubuntu1

## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
Ubuntu 18.04.

## How reproducible:
The following outputs should be equivalent:
```
$ p11tool --list-tokens
$ p11tool --list-tokens --provider=/usr/lib/softhsm/libsofthsm2.so
```

## Actual results:
```
$ p11tool --list-tokens --provider=/usr/lib/softhsm/libsofthsm2.so
Token 0:
        URL: pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=f7101470c14e7525;token=mytoken
        Label: mytoken
        Type: Generic token
        Manufacturer: SoftHSM project
        Model: SoftHSM v2
        Serial: f7101470c14e7525
        Module: (null)
```

## Expected results:
```
$ p11tool --list-tokens --provider=/usr/lib/softhsm/libsofthsm2.so
Token 0:
        URL: pkcs11:model=SoftHSM%20v2;manufacturer=SoftHSM%20project;serial=f7101470c14e7525;token=mytoken
        Label: mytoken
        Type: Generic token
        Manufacturer: SoftHSM project
        Model: SoftHSM v2
        Serial: f7101470c14e7525
        Module: /usr/lib/softhsm/libsofthsm2.so
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/633
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/20181129/f5847a45/attachment.html>


More information about the Gnutls-devel mailing list