summaryrefslogtreecommitdiff
path: root/src/pkcs11.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-06-27 21:46:24 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-06-27 21:46:31 +0200
commite6cd90221e06b4f4957dacf8614fc74328efa483 (patch)
tree86d0663a41377198b33730c27173d1c68ce35080 /src/pkcs11.c
parented407b0a4bf72e968743722f9c9fb3e28aa729f9 (diff)
downloadgnutls-e6cd90221e06b4f4957dacf8614fc74328efa483.tar.gz
p11tool: remove duplicate branch
The GNUTLS_PKCS11_OBJ_ATTR_MATCH and GNUTLS_PKCS11_OBJ_ATTR_ALL attributes are the same, so there is no need to handle them separately. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'src/pkcs11.c')
-rw-r--r--src/pkcs11.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkcs11.c b/src/pkcs11.c
index fd7b219dc7..4132f9ac37 100644
--- a/src/pkcs11.c
+++ b/src/pkcs11.c
@@ -235,9 +235,7 @@ pkcs11_list(FILE * outfile, const char *url, int type, unsigned int flags,
if (print_exts != 0) print_exts++;
} 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 {
+ } else { /* also PKCS11_TYPE_INFO */
attrs = GNUTLS_PKCS11_OBJ_ATTR_ALL;
}