Home | History | Annotate | Download | only in utils

Lines Matching refs:pin

250 static int scard_verify_pin(struct scard_data *scard, const char *pin);
329 wpa_hexdump(MSG_MSGDUMP, "SCARD: PIN Status Template "
494 * selected sim_type. In addition, local flag is set if a PIN is needed to
672 wpa_printf(MSG_DEBUG, "SCARD: Failed to determine whether PIN "
700 * scard_set_pin - Set PIN (CHV1/PIN1) code for accessing SIM/USIM commands
702 * @pin: PIN code as an ASCII string (e.g., "1234")
705 int scard_set_pin(struct scard_data *scard, const char *pin)
712 if (pin == NULL) {
713 wpa_printf(MSG_DEBUG, "No PIN configured for SIM "
717 if (scard_verify_pin(scard, pin)) {
718 wpa_printf(MSG_INFO, "PIN verification failed for "
1004 static int scard_verify_pin(struct scard_data *scard, const char *pin)
1011 wpa_printf(MSG_DEBUG, "SCARD: verifying PIN");
1013 if (pin == NULL || os_strlen(pin) > 8)
1018 os_memcpy(cmd + 5, pin, os_strlen(pin));
1019 os_memset(cmd + 5 + os_strlen(pin), 0xff, 8 - os_strlen(pin));
1027 wpa_printf(MSG_WARNING, "SCARD: PIN verification failed");
1031 wpa_printf(MSG_DEBUG, "SCARD: PIN verified successfully");
1044 wpa_printf(MSG_DEBUG, "SCARD: fetching PIN retry counter");
1056 wpa_printf(MSG_WARNING, "SCARD: failed to fetch PIN retry "
1063 wpa_printf(MSG_DEBUG, "SCARD: PIN has been blocked");
1070 wpa_printf(MSG_DEBUG, "SCARD: Unexpected PIN retry counter response "
1087 * file is PIN protected, scard_set_pin() must have been used to set the
1088 * correct PIN code before calling scard_get_imsi().