From 09a849c906c27eb49afdd56da5c12c52c5f8a84e Mon Sep 17 00:00:00 2001 From: alonbl Date: Fri, 23 Jan 2009 09:30:42 +0000 Subject: [PATCH] Set default of hide_empty_tokens to true git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3639 c6295689-39f2-0310-b995-f0e70906c6a9 --- etc/opensc.conf.in | 6 ++---- src/pkcs11/misc.c | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/etc/opensc.conf.in b/etc/opensc.conf.in index 6c324ba0..5c4aa264 100644 --- a/etc/opensc.conf.in +++ b/etc/opensc.conf.in @@ -327,10 +327,8 @@ app opensc-pkcs11 { # the card, the remaining keys will be empty # (and you will be able to create new objects # within them). - # - # Set this option to true to hide these empty - # slots. - hide_empty_tokens = yes; + # Default: true + # hide_empty_tokens = false; # By default, the OpenSC PKCS#11 module will lock your card # once you authenticate to the card via C_Login. diff --git a/src/pkcs11/misc.c b/src/pkcs11/misc.c index 0a0c1512..750efe59 100644 --- a/src/pkcs11/misc.c +++ b/src/pkcs11/misc.c @@ -320,7 +320,7 @@ void load_pkcs11_parameters(struct sc_pkcs11_config *conf, sc_context_t *ctx) conf->plug_and_play = 1; conf->max_virtual_slots = 16; conf->slots_per_card = 4; - conf->hide_empty_tokens = 0; + conf->hide_empty_tokens = 1; conf->lock_login = 1; conf->cache_pins = 1; conf->soft_keygen_allowed = 0;