Home
last modified time | relevance | path

Searched refs:eap_ctx (Results 1 – 2 of 2) sorted by relevance

/hostap-latest/eap_example/
Deap_example_server.c26 static struct eap_server_ctx eap_ctx; variable
74 eap_ctx.tls_ctx = tls_init(&tconf); in eap_example_server_init_tls()
75 if (eap_ctx.tls_ctx == NULL) in eap_example_server_init_tls()
86 if (tls_global_set_params(eap_ctx.tls_ctx, &tparams)) { in eap_example_server_init_tls()
91 if (tls_global_set_verify(eap_ctx.tls_ctx, 0, 1)) { in eap_example_server_init_tls()
215 os_memset(&eap_ctx, 0, sizeof(eap_ctx)); in eap_example_server_init()
226 eap_conf.ssl_ctx = eap_ctx.tls_ctx; in eap_example_server_init()
229 eap_ctx.eap = eap_server_sm_init(&eap_ctx, &eap_cb, &eap_conf, in eap_example_server_init()
231 if (eap_ctx.eap == NULL) in eap_example_server_init()
234 eap_ctx.eap_if = eap_get_interface(eap_ctx.eap); in eap_example_server_init()
[all …]
Deap_example_peer.c41 static struct eap_peer_ctx eap_ctx; variable
295 os_memset(&eap_ctx, 0, sizeof(eap_ctx)); in eap_example_peer_init()
297 eap_ctx.eap_config.identity = (u8 *) os_strdup("user"); in eap_example_peer_init()
298 eap_ctx.eap_config.identity_len = 4; in eap_example_peer_init()
299 eap_ctx.eap_config.password = (u8 *) os_strdup("password"); in eap_example_peer_init()
300 eap_ctx.eap_config.password_len = 8; in eap_example_peer_init()
301 eap_ctx.eap_config.cert.ca_cert = os_strdup("ca.pem"); in eap_example_peer_init()
302 eap_ctx.eap_config.fragment_size = 1398; in eap_example_peer_init()
316 eap_ctx.eap = eap_peer_sm_init(&eap_ctx, &eap_cb, &eap_ctx, &eap_conf); in eap_example_peer_init()
317 if (eap_ctx.eap == NULL) in eap_example_peer_init()
[all …]