Lines Matching refs:passphrase
312 if (new_ssid->passphrase && ssid->passphrase && in wpas_wps_remove_dup_network()
313 os_strcmp(new_ssid->passphrase, ssid->passphrase) != in wpas_wps_remove_dup_network()
328 if ((new_ssid->passphrase && !ssid->passphrase) || in wpas_wps_remove_dup_network()
329 (!new_ssid->passphrase && ssid->passphrase)) { in wpas_wps_remove_dup_network()
535 os_free(ssid->passphrase); in wpa_supplicant_wps_cred()
536 ssid->passphrase = os_malloc(cred->key_len + 1); in wpa_supplicant_wps_cred()
537 if (ssid->passphrase == NULL) in wpa_supplicant_wps_cred()
539 os_memcpy(ssid->passphrase, cred->key, cred->key_len); in wpa_supplicant_wps_cred()
540 ssid->passphrase[cred->key_len] = '\0'; in wpa_supplicant_wps_cred()
1998 if (ssid->passphrase) { in wpas_wps_network_to_cred()
1999 cred->key_len = os_strlen(ssid->passphrase); in wpas_wps_network_to_cred()
2002 os_memcpy(cred->key, ssid->passphrase, cred->key_len); in wpas_wps_network_to_cred()