Home | History | Annotate | Download | only in eap_peer

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],
694 struct eap_peer_config *config = eap_get_config(sm);
708 if (config->erp && sm->m->get_emsk && sm->eapSessionId)
952 struct eap_peer_config *config = eap_get_config(sm);
954 return config && config->phase1 &&
955 os_strstr(config->phase1, "allow_canned_success=1");
1434 struct eap_peer_config *config = eap_get_config(sm);
1439 if (config == NULL) {
1450 } else if (!encrypted && config->anonymous_identity) {
1451 identity = config->anonymous_identity;
1452 identity_len = config->anonymous_identity_len;
1456 identity = config->identity;
1457 identity_len = config->identity_len;
1462 if (config->pcsc) {
1465 if (eap_sm_get_scard_identity(sm, config) < 0)
1467 identity = config->identity;
1468 identity_len = config->identity_len;
1472 } else if (eap_sm_set_scard_pin(sm, config) < 0) {
2188 struct eap_peer_config *config;
2194 config = eap_get_config(sm);
2195 if (config == NULL)
2200 config->pending_req_identity++;
2203 config->pending_req_password++;
2206 config->pending_req_new_password++;
2209 config->pending_req_pin++;
2221 os_free(config->pending_req_otp);
2222 config->pending_req_otp = tmp;
2223 config->pending_req_otp_len = msglen + 3;
2225 if (config->pending_req_otp == NULL)
2227 txt = config->pending_req_otp;
2231 config->pending_req_passphrase++;
2367 struct eap_peer_config *config = eap_get_config(sm);
2369 if (config == NULL)
2376 if (config->pending_req_identity)
2378 if (config->pending_req_password)
2380 if (config->pending_req_new_password)
2382 if (config->pending_req_otp)
2384 if (config->pending_req_pin)
2386 if (config->pending_req_passphrase)
2425 * @config: Pointer to a network configuration
2432 struct eap_method_type * eap_get_phase2_types(struct eap_peer_config *config,
2454 method == EAP_TYPE_TLS && config &&
2455 config->private_key2 == NULL)
2513 struct eap_peer_config *config = eap_get_config(sm);
2514 if (config == NULL)
2516 *len = config->identity_len;
2517 return config->identity;
2522 struct eap_peer_config *config)
2526 if (config->password == NULL)
2529 name = os_zalloc(config->password_len + 1);
2532 os_memcpy(name, config->password, config->password_len);
2550 struct eap_peer_config *config = eap_get_config(sm);
2551 if (config == NULL)
2554 if (config->flags & EAP_CONFIG_FLAGS_EXT_PASSWORD) {
2555 if (eap_get_ext_password(sm, config) < 0)
2561 *len = config->password_len;
2562 return config->password;
2577 struct eap_peer_config *config = eap_get_config(sm);
2578 if (config == NULL)
2581 if (config->flags & EAP_CONFIG_FLAGS_EXT_PASSWORD) {
2582 if (eap_get_ext_password(sm, config) < 0)
2590 *len = config->password_len;
2592 *hash = !!(config->flags & EAP_CONFIG_FLAGS_PASSWORD_NTHASH);
2593 return config->password;
2605 struct eap_peer_config *config = eap_get_config(sm);
2606 if (config == NULL)
2608 *len = config->new_password_len;
2609 return config->new_password;
2621 struct eap_peer_config *config = eap_get_config(sm);
2622 if (config == NULL)
2624 *len = config->otp_len;
2625 return config->otp;
2639 struct eap_peer_config *config = eap_get_config(sm);
2640 if (config == NULL)
2642 os_memset(config->otp, 0, config->otp_len);
2643 os_free(config->otp);
2644 config->otp = NULL;
2645 config->otp_len = 0;
2656 struct eap_peer_config *config = eap_get_config(sm);
2657 if (config == NULL)
2659 return config->phase1;
2670 struct eap_peer_config *config = eap_get_config(sm);
2671 if (config == NULL)
2673 return config->phase2;
2679 struct eap_peer_config *config = eap_get_config(sm);
2680 if (config == NULL)
2682 return config->fragment_size;