diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-08-08 10:59:27 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-08-08 10:59:29 +0200 |
commit | 376ebffc145ad15c2c6b8b84ad902fa9b9a1b380 (patch) | |
tree | d2510f4bad9af46d92d1160f91d60d125b3e76be /src/pkcs11.c | |
parent | 682d30379d97fb90b4380f95d5c9796d08af4811 (diff) | |
download | gnutls-376ebffc145ad15c2c6b8b84ad902fa9b9a1b380.tar.gz |
p11tool: added --info parameter
That allows obtaining information on a specific object.
Diffstat (limited to 'src/pkcs11.c')
-rw-r--r-- | src/pkcs11.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkcs11.c b/src/pkcs11.c index 2f78ae58b3..5e364bcbd6 100644 --- a/src/pkcs11.c +++ b/src/pkcs11.c @@ -110,6 +110,8 @@ pkcs11_list(FILE * outfile, const char *url, int type, unsigned int flags, attrs = GNUTLS_PKCS11_OBJ_ATTR_CRT_ALL; } else if (type == PKCS11_TYPE_PRIVKEY) { attrs = GNUTLS_PKCS11_OBJ_ATTR_PRIVKEY; + } else if (type == PKCS11_TYPE_INFO) { + attrs = GNUTLS_PKCS11_OBJ_ATTR_MATCH; } else { attrs = GNUTLS_PKCS11_OBJ_ATTR_ALL; } |