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;