Lines Matching refs:radius
894 bss->radius = os_zalloc(sizeof(*bss->radius)); in hostapd_config_bss()
895 if (bss->radius == NULL) { in hostapd_config_bss()
2874 if (hostapd_parse_ip_addr(pos, &bss->radius->client_addr)) { in hostapd_config_fill()
2880 bss->radius->force_client_addr = 1; in hostapd_config_fill()
2882 os_free(bss->radius->force_client_dev); in hostapd_config_fill()
2883 bss->radius->force_client_dev = os_strdup(pos); in hostapd_config_fill()
2886 &bss->radius->auth_servers, in hostapd_config_fill()
2887 &bss->radius->num_auth_servers, pos, 1812, in hostapd_config_fill()
2888 &bss->radius->auth_server)) { in hostapd_config_fill()
2894 } else if (bss->radius->auth_server && in hostapd_config_fill()
2897 &bss->radius->auth_server->addr)) { in hostapd_config_fill()
2903 } else if (bss->radius->auth_server && in hostapd_config_fill()
2905 bss->radius->auth_server->port = atoi(pos); in hostapd_config_fill()
2906 } else if (bss->radius->auth_server && in hostapd_config_fill()
2915 os_free(bss->radius->auth_server->shared_secret); in hostapd_config_fill()
2916 bss->radius->auth_server->shared_secret = (u8 *) os_strdup(pos); in hostapd_config_fill()
2917 bss->radius->auth_server->shared_secret_len = len; in hostapd_config_fill()
2918 } else if (bss->radius->auth_server && in hostapd_config_fill()
2921 bss->radius->auth_server->tls = false; in hostapd_config_fill()
2924 bss->radius->auth_server->tls = true; in hostapd_config_fill()
2932 } else if (bss->radius->auth_server && in hostapd_config_fill()
2934 os_free(bss->radius->auth_server->ca_cert); in hostapd_config_fill()
2935 bss->radius->auth_server->ca_cert = os_strdup(pos); in hostapd_config_fill()
2936 } else if (bss->radius->auth_server && in hostapd_config_fill()
2938 os_free(bss->radius->auth_server->client_cert); in hostapd_config_fill()
2939 bss->radius->auth_server->client_cert = os_strdup(pos); in hostapd_config_fill()
2940 } else if (bss->radius->auth_server && in hostapd_config_fill()
2942 os_free(bss->radius->auth_server->private_key); in hostapd_config_fill()
2943 bss->radius->auth_server->private_key = os_strdup(pos); in hostapd_config_fill()
2944 } else if (bss->radius->auth_server && in hostapd_config_fill()
2946 os_free(bss->radius->auth_server->private_key_passwd); in hostapd_config_fill()
2947 bss->radius->auth_server->private_key_passwd = os_strdup(pos); in hostapd_config_fill()
2951 &bss->radius->acct_servers, in hostapd_config_fill()
2952 &bss->radius->num_acct_servers, pos, 1813, in hostapd_config_fill()
2953 &bss->radius->acct_server)) { in hostapd_config_fill()
2959 } else if (bss->radius->acct_server && in hostapd_config_fill()
2962 &bss->radius->acct_server->addr)) { in hostapd_config_fill()
2968 } else if (bss->radius->acct_server && in hostapd_config_fill()
2970 bss->radius->acct_server->port = atoi(pos); in hostapd_config_fill()
2971 } else if (bss->radius->acct_server && in hostapd_config_fill()
2980 os_free(bss->radius->acct_server->shared_secret); in hostapd_config_fill()
2981 bss->radius->acct_server->shared_secret = (u8 *) os_strdup(pos); in hostapd_config_fill()
2982 bss->radius->acct_server->shared_secret_len = len; in hostapd_config_fill()
2983 } else if (bss->radius->acct_server && in hostapd_config_fill()
2986 bss->radius->acct_server->tls = false; in hostapd_config_fill()
2989 bss->radius->acct_server->tls = true; in hostapd_config_fill()
2997 } else if (bss->radius->acct_server && in hostapd_config_fill()
2999 os_free(bss->radius->acct_server->ca_cert); in hostapd_config_fill()
3000 bss->radius->acct_server->ca_cert = os_strdup(pos); in hostapd_config_fill()
3001 } else if (bss->radius->acct_server && in hostapd_config_fill()
3003 os_free(bss->radius->acct_server->client_cert); in hostapd_config_fill()
3004 bss->radius->acct_server->client_cert = os_strdup(pos); in hostapd_config_fill()
3005 } else if (bss->radius->acct_server && in hostapd_config_fill()
3007 os_free(bss->radius->acct_server->private_key); in hostapd_config_fill()
3008 bss->radius->acct_server->private_key = os_strdup(pos); in hostapd_config_fill()
3009 } else if (bss->radius->acct_server && in hostapd_config_fill()
3011 os_free(bss->radius->acct_server->private_key_passwd); in hostapd_config_fill()
3012 bss->radius->acct_server->private_key_passwd = os_strdup(pos); in hostapd_config_fill()
3015 bss->radius->retry_primary_interval = atoi(pos); in hostapd_config_fill()