From: Nikos Mavrogiannopoulos Date: Fri, 10 Jul 2015 14:25:48 +0000 (+0200) Subject: p11tool: print the module name of a token in verbose mode X-Git-Tag: gnutls_3_4_3~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08fc29d30ade5ded03fe7defa65519f95a7ebbd9;p=thirdparty%2Fgnutls.git p11tool: print the module name of a token in verbose mode --- diff --git a/src/pkcs11.c b/src/pkcs11.c index a77ac68cf1..ab2de9e9bd 100644 --- a/src/pkcs11.c +++ b/src/pkcs11.c @@ -610,6 +610,15 @@ pkcs11_token_list(FILE * outfile, unsigned int detailed, } fprintf(outfile, "\tSerial: %s\n", buf); + + size = sizeof(buf); + ret = + gnutls_pkcs11_token_get_info(url, + GNUTLS_PKCS11_TOKEN_MODNAME, + buf, &size); + if (ret >= 0) { + fprintf(outfile, "\tModule: %s\n", buf); + } fprintf(outfile, "\n\n"); cont: gnutls_free(url);