Lines Matching defs:config
298 struct eap_peer_config *config = eap_get_config(sm);
299 if (config && config->new_password) {
304 bin_clear_free(config->password, config->password_len);
305 if (config->flags & EAP_CONFIG_FLAGS_EXT_PASSWORD) {
307 } else if (config->flags & EAP_CONFIG_FLAGS_PASSWORD_NTHASH) {
308 config->password = os_malloc(16);
309 config->password_len = 16;
310 if (config->password &&
311 nt_password_hash(config->new_password,
312 config->new_password_len,
313 config->password)) {
314 bin_clear_free(config->password,
315 config->password_len);
316 config->password = NULL;
317 config->password_len = 0;
319 bin_clear_free(config->new_password,
320 config->new_password_len);
322 config->password = config->new_password;
323 config->password_len = config->new_password_len;
325 config->new_password = NULL;
326 config->new_password_len = 0;
403 struct eap_peer_config *config = eap_get_config(sm);
474 config && config->phase2 &&
475 os_strstr(config->phase2, "mschapv2_retry=0")) {
485 data->passwd_change_version == 3 && config) {
486 if (config->new_password == NULL) {
492 } else if (retry == 1 && config) {
495 if (!config->mschapv2_retry)
498 config->mschapv2_retry = 1;
499 } else if (config) {
501 config->mschapv2_retry = 0;
682 struct eap_peer_config *config = eap_get_config(sm);
683 if (config && config->new_password)
686 if (config && config->pending_req_new_password)
778 struct eap_peer_config *config = eap_get_config(sm);
790 if (config->mschapv2_retry && data->prev_challenge &&
797 config->mschapv2_retry = 0;