Lines Matching refs:readers
510 TCHAR *readers = NULL;
512 char *readers = NULL;
544 readers = os_malloc(len);
545 if (readers == NULL) {
550 ret = SCardListReaders(scard->ctx, NULL, readers, &len);
557 wpa_printf(MSG_WARNING, "SCARD: No smart card readers "
561 wpa_hexdump_ascii(MSG_DEBUG, "SCARD: Readers", (u8 *) readers, len);
563 * readers is a list of available readers. The last entry is terminated
572 os_strncmp(&readers[pos], reader, os_strlen(reader)) == 0)
574 while (pos < len && readers[pos])
577 if (pos < len && readers[pos] == '\0')
588 wpa_printf(MSG_DEBUG, "SCARD: Selected reader='%S'", &readers[pos]);
590 wpa_printf(MSG_DEBUG, "SCARD: Selected reader='%s'", &readers[pos]);
593 ret = SCardConnect(scard->ctx, &readers[pos], SCARD_SHARE_SHARED,
604 os_free(readers);
605 readers = NULL;
693 os_free(readers);