Lines Matching defs:conf
2343 * @conf: Configuration for the RADIUS server
2351 radius_server_init(struct radius_server_conf *conf)
2356 if (conf->ipv6) {
2370 data->conf_ctx = conf->conf_ctx;
2371 data->eap_sim_db_priv = conf->eap_sim_db_priv;
2372 data->ssl_ctx = conf->ssl_ctx;
2373 data->msg_ctx = conf->msg_ctx;
2374 data->ipv6 = conf->ipv6;
2375 if (conf->pac_opaque_encr_key) {
2379 conf->pac_opaque_encr_key, 16);
2382 if (conf->eap_fast_a_id) {
2383 data->eap_fast_a_id = os_malloc(conf->eap_fast_a_id_len);
2385 os_memcpy(data->eap_fast_a_id, conf->eap_fast_a_id,
2386 conf->eap_fast_a_id_len);
2387 data->eap_fast_a_id_len = conf->eap_fast_a_id_len;
2390 if (conf->eap_fast_a_id_info)
2391 data->eap_fast_a_id_info = os_strdup(conf->eap_fast_a_id_info);
2392 data->eap_fast_prov = conf->eap_fast_prov;
2393 data->pac_key_lifetime = conf->pac_key_lifetime;
2394 data->pac_key_refresh_time = conf->pac_key_refresh_time;
2395 data->eap_teap_auth = conf->eap_teap_auth;
2396 data->eap_teap_pac_no_inner = conf->eap_teap_pac_no_inner;
2397 data->get_eap_user = conf->get_eap_user;
2398 data->eap_sim_aka_result_ind = conf->eap_sim_aka_result_ind;
2399 data->eap_sim_id = conf->eap_sim_id;
2400 data->tnc = conf->tnc;
2401 data->wps = conf->wps;
2402 data->pwd_group = conf->pwd_group;
2403 data->server_id = conf->server_id;
2404 if (conf->eap_req_id_text) {
2405 data->eap_req_id_text = os_malloc(conf->eap_req_id_text_len);
2407 os_memcpy(data->eap_req_id_text, conf->eap_req_id_text,
2408 conf->eap_req_id_text_len);
2409 data->eap_req_id_text_len = conf->eap_req_id_text_len;
2412 data->erp = conf->erp;
2413 data->erp_domain = conf->erp_domain;
2414 data->tls_session_lifetime = conf->tls_session_lifetime;
2415 data->tls_flags = conf->tls_flags;
2417 if (conf->subscr_remediation_url) {
2419 os_strdup(conf->subscr_remediation_url);
2421 data->subscr_remediation_method = conf->subscr_remediation_method;
2422 if (conf->hs20_sim_provisioning_url)
2424 os_strdup(conf->hs20_sim_provisioning_url);
2426 if (conf->t_c_server_url)
2427 data->t_c_server_url = os_strdup(conf->t_c_server_url);
2430 if (conf->sqlite_file) {
2431 if (sqlite3_open(conf->sqlite_file, &data->db)) {
2433 conf->sqlite_file);
2441 if (conf->dump_msk_file)
2442 data->dump_msk_file = os_strdup(conf->dump_msk_file);
2445 data->clients = radius_server_read_clients(conf->client_file,
2446 conf->ipv6);
2454 if (conf->ipv6)
2455 data->auth_sock = radius_server_open_socket6(conf->auth_port);
2458 data->auth_sock = radius_server_open_socket(conf->auth_port);
2471 if (conf->acct_port) {
2473 if (conf->ipv6)
2475 conf->acct_port);
2478 data->acct_sock = radius_server_open_socket(conf->acct_port);