Lines Matching refs:conf
108 struct hostapd_bss_config *conf = hapd->conf; in hostapd_setup_radius_srv() local
126 srv.client_file = conf->radius_server_clients; in hostapd_setup_radius_srv()
127 srv.auth_port = conf->radius_server_auth_port; in hostapd_setup_radius_srv()
128 srv.acct_port = conf->radius_server_acct_port; in hostapd_setup_radius_srv()
130 srv.ipv6 = conf->radius_server_ipv6; in hostapd_setup_radius_srv()
132 srv.eap_req_id_text = conf->eap_req_id_text; in hostapd_setup_radius_srv()
133 srv.eap_req_id_text_len = conf->eap_req_id_text_len; in hostapd_setup_radius_srv()
134 srv.sqlite_file = conf->eap_user_sqlite; in hostapd_setup_radius_srv()
136 srv.dump_msk_file = conf->dump_msk_file; in hostapd_setup_radius_srv()
139 srv.subscr_remediation_url = conf->subscr_remediation_url; in hostapd_setup_radius_srv()
140 srv.subscr_remediation_method = conf->subscr_remediation_method; in hostapd_setup_radius_srv()
141 srv.hs20_sim_provisioning_url = conf->hs20_sim_provisioning_url; in hostapd_setup_radius_srv()
142 srv.t_c_server_url = conf->t_c_server_url; in hostapd_setup_radius_srv()
144 srv.erp_domain = conf->erp_domain; in hostapd_setup_radius_srv()
204 cfg->eap_server = hapd->conf->eap_server; in authsrv_eap_config()
208 cfg->tls_session_lifetime = hapd->conf->tls_session_lifetime; in authsrv_eap_config()
209 cfg->tls_flags = hapd->conf->tls_flags; in authsrv_eap_config()
210 cfg->max_auth_rounds = hapd->conf->max_auth_rounds; in authsrv_eap_config()
211 cfg->max_auth_rounds_short = hapd->conf->max_auth_rounds_short; in authsrv_eap_config()
212 if (hapd->conf->pac_opaque_encr_key) in authsrv_eap_config()
214 os_memdup(hapd->conf->pac_opaque_encr_key, 16); in authsrv_eap_config()
215 if (hapd->conf->eap_fast_a_id) { in authsrv_eap_config()
216 cfg->eap_fast_a_id = os_memdup(hapd->conf->eap_fast_a_id, in authsrv_eap_config()
217 hapd->conf->eap_fast_a_id_len); in authsrv_eap_config()
218 cfg->eap_fast_a_id_len = hapd->conf->eap_fast_a_id_len; in authsrv_eap_config()
220 if (hapd->conf->eap_fast_a_id_info) in authsrv_eap_config()
222 os_strdup(hapd->conf->eap_fast_a_id_info); in authsrv_eap_config()
223 cfg->eap_fast_prov = hapd->conf->eap_fast_prov; in authsrv_eap_config()
224 cfg->pac_key_lifetime = hapd->conf->pac_key_lifetime; in authsrv_eap_config()
225 cfg->pac_key_refresh_time = hapd->conf->pac_key_refresh_time; in authsrv_eap_config()
226 cfg->eap_teap_auth = hapd->conf->eap_teap_auth; in authsrv_eap_config()
227 cfg->eap_teap_pac_no_inner = hapd->conf->eap_teap_pac_no_inner; in authsrv_eap_config()
228 cfg->eap_teap_separate_result = hapd->conf->eap_teap_separate_result; in authsrv_eap_config()
229 cfg->eap_teap_id = hapd->conf->eap_teap_id; in authsrv_eap_config()
230 cfg->eap_teap_method_sequence = hapd->conf->eap_teap_method_sequence; in authsrv_eap_config()
231 cfg->eap_sim_aka_result_ind = hapd->conf->eap_sim_aka_result_ind; in authsrv_eap_config()
232 cfg->eap_sim_id = hapd->conf->eap_sim_id; in authsrv_eap_config()
235 hapd->conf->eap_sim_aka_fast_reauth_limit; in authsrv_eap_config()
236 cfg->tnc = hapd->conf->tnc; in authsrv_eap_config()
238 cfg->fragment_size = hapd->conf->fragment_size; in authsrv_eap_config()
239 cfg->pwd_group = hapd->conf->pwd_group; in authsrv_eap_config()
240 cfg->pbc_in_m1 = hapd->conf->pbc_in_m1; in authsrv_eap_config()
241 if (hapd->conf->server_id) { in authsrv_eap_config()
242 cfg->server_id = (u8 *) os_strdup(hapd->conf->server_id); in authsrv_eap_config()
243 cfg->server_id_len = os_strlen(hapd->conf->server_id); in authsrv_eap_config()
248 cfg->erp = hapd->conf->eap_server_erp; in authsrv_eap_config()
250 cfg->skip_prot_success = hapd->conf->eap_skip_prot_success; in authsrv_eap_config()
289 if (hapd->conf->eap_server && in authsrv_init()
290 (hapd->conf->ca_cert || hapd->conf->server_cert || in authsrv_init()
291 hapd->conf->private_key || hapd->conf->dh_file || in authsrv_init()
292 hapd->conf->server_cert2 || hapd->conf->private_key2)) { in authsrv_init()
293 struct tls_config conf; in authsrv_init() local
296 os_memset(&conf, 0, sizeof(conf)); in authsrv_init()
297 conf.tls_session_lifetime = hapd->conf->tls_session_lifetime; in authsrv_init()
298 if (hapd->conf->crl_reload_interval > 0 && in authsrv_init()
299 hapd->conf->check_crl <= 0) { in authsrv_init()
302 } else if (hapd->conf->crl_reload_interval > 0) { in authsrv_init()
303 conf.crl_reload_interval = in authsrv_init()
304 hapd->conf->crl_reload_interval; in authsrv_init()
308 conf.tls_flags = hapd->conf->tls_flags; in authsrv_init()
309 conf.event_cb = authsrv_tls_event; in authsrv_init()
310 conf.cb_ctx = hapd; in authsrv_init()
311 hapd->ssl_ctx = tls_init(&conf); in authsrv_init()
319 params.ca_cert = hapd->conf->ca_cert; in authsrv_init()
320 params.client_cert = hapd->conf->server_cert; in authsrv_init()
321 params.client_cert2 = hapd->conf->server_cert2; in authsrv_init()
322 params.private_key = hapd->conf->private_key; in authsrv_init()
323 params.private_key2 = hapd->conf->private_key2; in authsrv_init()
324 params.private_key_passwd = hapd->conf->private_key_passwd; in authsrv_init()
325 params.private_key_passwd2 = hapd->conf->private_key_passwd2; in authsrv_init()
326 params.dh_file = hapd->conf->dh_file; in authsrv_init()
327 params.openssl_ciphers = hapd->conf->openssl_ciphers; in authsrv_init()
328 params.openssl_ecdh_curves = hapd->conf->openssl_ecdh_curves; in authsrv_init()
330 hapd->conf->ocsp_stapling_response; in authsrv_init()
332 hapd->conf->ocsp_stapling_response_multi; in authsrv_init()
333 params.check_cert_subject = hapd->conf->check_cert_subject; in authsrv_init()
342 hapd->conf->check_crl, in authsrv_init()
343 hapd->conf->check_crl_strict)) { in authsrv_init()
354 if (hapd->conf->imsi_privacy_key) { in authsrv_init()
356 hapd->conf->imsi_privacy_key, true); in authsrv_init()
360 hapd->conf->imsi_privacy_key); in authsrv_init()
368 if (hapd->conf->eap_sim_db) { in authsrv_init()
370 eap_sim_db_init(hapd->conf->eap_sim_db, in authsrv_init()
371 hapd->conf->eap_sim_db_timeout, in authsrv_init()
391 if (hapd->conf->radius_server_clients && in authsrv_init()