Lines Matching refs:name
75 EapType eap_peer_get_type(const char *name, int *vendor) in eap_peer_get_type() argument
79 if (os_strcmp(m->name, name) == 0) { in eap_peer_get_type()
97 u32 eap_get_phase2_type(const char *name, int *vendor) in eap_get_phase2_type() argument
100 u8 type = eap_peer_get_type(name, &v); in eap_get_phase2_type()
144 const char *name) in eap_peer_method_alloc() argument
152 eap->name = name; in eap_peer_method_alloc()
165 if (method == NULL || method->name == NULL) in eap_peer_method_register()
170 os_strcmp(m->name, method->name)) in eap_peer_method_register()
442 sm->config.client_cert = (u8 *)sm->blob[0].name; in eap_peer_config_init()
443 sm->config.private_key = (u8 *)sm->blob[1].name; in eap_peer_config_init()
444 sm->config.ca_cert = (u8 *)sm->blob[2].name; in eap_peer_config_init()
526 sm->blob[0].name = (char *)os_zalloc(BLOB_NAME_LEN+1); in eap_peer_blob_init()
527 if (sm->blob[0].name == NULL) { in eap_peer_blob_init()
531 os_strncpy(sm->blob[0].name, CLIENT_CERT_NAME, BLOB_NAME_LEN+1); in eap_peer_blob_init()
537 sm->blob[1].name = (char *)os_zalloc(BLOB_NAME_LEN+1); in eap_peer_blob_init()
538 if (sm->blob[1].name == NULL) { in eap_peer_blob_init()
542 os_strncpy(sm->blob[1].name, PRIVATE_KEY_NAME, BLOB_NAME_LEN+1); in eap_peer_blob_init()
548 sm->blob[2].name = (char *)os_zalloc(BLOB_NAME_LEN+1); in eap_peer_blob_init()
549 if (sm->blob[2].name == NULL) { in eap_peer_blob_init()
553 os_strncpy(sm->blob[2].name, CA_CERT_NAME, BLOB_NAME_LEN+1); in eap_peer_blob_init()
559 sm->blob[3].name = (char *)os_zalloc(sizeof(char) * 8); in eap_peer_blob_init()
560 if (sm->blob[3].name == NULL) { in eap_peer_blob_init()
564 os_strncpy(sm->blob[3].name, "blob://", 8); in eap_peer_blob_init()
572 if (sm->blob[i].name) { in eap_peer_blob_init()
573 os_free(sm->blob[i].name); in eap_peer_blob_init()
574 sm->blob[i].name = NULL; in eap_peer_blob_init()
623 return sm->m->name; in eap_sm_get_method_name()
676 if (sm->blob[i].name) { in eap_peer_blob_deinit()
677 os_free(sm->blob[i].name); in eap_peer_blob_deinit()
678 sm->blob[i].name = NULL; in eap_peer_blob_deinit()
820 const char *name) in eap_get_config_blob() argument
828 if (sm->blob[i].name == NULL) in eap_get_config_blob()
830 if (os_strncmp(name, sm->blob[i].name, BLOB_NAME_LEN) == 0) { in eap_get_config_blob()