Fix and change ignored readers feature introducsed in r4626 for Windows. strcasestr is GNU specific extension.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4630 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
bb8b2d5f4b
commit
b1ff1abb1b
|
@ -406,11 +406,11 @@ app opensc-pkcs11 {
|
|||
# zero_ckaid_for_ca_certs = true;
|
||||
|
||||
# List of readers to ignore
|
||||
# If any of the strings listed below is matched (case ignored) in a reader name,
|
||||
# If any of the strings listed below is matched (case sensitive) in a reader name,
|
||||
# the reader is ignored by the PKCS#11 module.
|
||||
#
|
||||
# Default: empty
|
||||
# ignored_readers = "cardman 1021", "SPR 532";
|
||||
# ignored_readers = "CardMan 1021", "SPR 532";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ CK_RV initialize_reader(sc_reader_t *reader)
|
|||
if (conf_block != NULL) {
|
||||
list = scconf_find_list(conf_block, "ignored_readers");
|
||||
while (list != NULL) {
|
||||
if (strcasestr(reader->name, list->data) != NULL) {
|
||||
if (strstr(reader->name, list->data) != NULL) {
|
||||
sc_debug(context, SC_LOG_DEBUG_NORMAL, "Ignoring reader \'%s\' because of \'%s\'\n", reader->name, list->data);
|
||||
return CKR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue