Lines Matching defs:config
132 struct eap_peer_config *config = eap_get_config(sm);
136 if (config == NULL || config->eap_methods == NULL)
139 m = config->eap_methods;
335 struct eap_peer_config *config = eap_get_config(sm);
343 if (sm->reqMethod == EAP_TYPE_TLS && config &&
344 (config->pending_req_pin ||
345 config->pending_req_passphrase)) {
376 struct eap_peer_config *config = eap_get_config(sm);
380 if (!config)
383 if (config->identity) {
384 for (i = 0; i < config->identity_len; i++) {
385 if (config->identity[i] == '@')
388 if (i < config->identity_len) {
389 realm_len = config->identity_len - i - 1;
393 os_memcpy(realm, &config->identity[i + 1], realm_len);
399 if (config->anonymous_identity) {
400 for (i = 0; i < config->anonymous_identity_len; i++) {
401 if (config->anonymous_identity[i] == '@')
404 if (i < config->anonymous_identity_len) {
405 realm_len = config->anonymous_identity_len - i - 1;
409 os_memcpy(realm, &config->anonymous_identity[i + 1],
710 struct eap_peer_config *config = eap_get_config(sm);
724 if (config->erp && sm->m->get_emsk && sm->eapSessionId)
968 struct eap_peer_config *config = eap_get_config(sm);
970 return config && config->phase1 &&
971 os_strstr(config->phase1, "allow_canned_success=1");
1450 struct eap_peer_config *config = eap_get_config(sm);
1455 if (config == NULL) {
1466 } else if (!encrypted && config->anonymous_identity) {
1467 identity = config->anonymous_identity;
1468 identity_len = config->anonymous_identity_len;
1472 identity = config->identity;
1473 identity_len = config->identity_len;
1478 if (config->pcsc) {
1481 if (eap_sm_get_scard_identity(sm, config) < 0)
1483 identity = config->identity;
1484 identity_len = config->identity_len;
1488 } else if (eap_sm_set_scard_pin(sm, config) < 0) {
2203 struct eap_peer_config *config;
2209 config = eap_get_config(sm);
2210 if (config == NULL)
2215 config->pending_req_identity++;
2218 config->pending_req_password++;
2221 config->pending_req_new_password++;
2224 config->pending_req_pin++;
2236 os_free(config->pending_req_otp);
2237 config->pending_req_otp = tmp;
2238 config->pending_req_otp_len = msglen + 3;
2240 if (config->pending_req_otp == NULL)
2242 txt = config->pending_req_otp;
2246 config->pending_req_passphrase++;
2249 config->pending_req_sim++;
2383 struct eap_peer_config *config = eap_get_config(sm);
2385 if (config == NULL)
2392 if (config->pending_req_identity)
2394 if (config->pending_req_password)
2396 if (config->pending_req_new_password)
2398 if (config->pending_req_otp)
2400 if (config->pending_req_pin)
2402 if (config->pending_req_passphrase)
2441 * @config: Pointer to a network configuration
2448 struct eap_method_type * eap_get_phase2_types(struct eap_peer_config *config,
2470 method == EAP_TYPE_TLS && config &&
2471 config->private_key2 == NULL)
2529 struct eap_peer_config *config = eap_get_config(sm);
2530 if (config == NULL)
2532 *len = config->identity_len;
2533 return config->identity;
2538 struct eap_peer_config *config)
2542 if (config->password == NULL)
2545 name = os_zalloc(config->password_len + 1);
2548 os_memcpy(name, config->password, config->password_len);
2566 struct eap_peer_config *config = eap_get_config(sm);
2567 if (config == NULL)
2570 if (config->flags & EAP_CONFIG_FLAGS_EXT_PASSWORD) {
2571 if (eap_get_ext_password(sm, config) < 0)
2577 *len = config->password_len;
2578 return config->password;
2593 struct eap_peer_config *config = eap_get_config(sm);
2594 if (config == NULL)
2597 if (config->flags & EAP_CONFIG_FLAGS_EXT_PASSWORD) {
2598 if (eap_get_ext_password(sm, config) < 0)
2606 *len = config->password_len;
2608 *hash = !!(config->flags & EAP_CONFIG_FLAGS_PASSWORD_NTHASH);
2609 return config->password;
2621 struct eap_peer_config *config = eap_get_config(sm);
2622 if (config == NULL)
2624 *len = config->new_password_len;
2625 return config->new_password;
2637 struct eap_peer_config *config = eap_get_config(sm);
2638 if (config == NULL)
2640 *len = config->otp_len;
2641 return config->otp;
2655 struct eap_peer_config *config = eap_get_config(sm);
2656 if (config == NULL)
2658 os_memset(config->otp, 0, config->otp_len);
2659 os_free(config->otp);
2660 config->otp = NULL;
2661 config->otp_len = 0;
2672 struct eap_peer_config *config = eap_get_config(sm);
2673 if (config == NULL)
2675 return config->phase1;
2686 struct eap_peer_config *config = eap_get_config(sm);
2687 if (config == NULL)
2689 return config->phase2;
2695 struct eap_peer_config *config = eap_get_config(sm);
2696 if (config == NULL)
2698 return config->fragment_size;