|
Greenbone Security Assistant
9.0.1
|
Global settings for GSA. More...
#include "gsad_settings.h"
Go to the source code of this file.
Variables | |
| gchar * | vendor_version = NULL |
| Version from vendor, or NULL. More... | |
| gchar * | guest_username = NULL |
| Guest username. More... | |
| gchar * | guest_password = NULL |
| Guest password. More... | |
| int | session_timeout |
| Maximum number of minutes of user idle time. More... | |
| const gchar * | http_x_frame_options |
| Current value for HTTP header "X-Frame-Options". More... | |
| const gchar * | http_content_security_policy |
| Current value for HTTP header "Content-Security-Policy". More... | |
| const gchar * | http_guest_chart_x_frame_options |
| Current guest chart specific value for HTTP header "X-Frame-Options". More... | |
| const gchar * | http_guest_chart_content_security_policy |
| Current guest chart value for HTTP header "Content-Security-Policy". More... | |
| const gchar * | http_strict_transport_security |
| Current value of for HTTP header "Strict-Transport-Security". More... | |
| const gchar * | http_cors_origin |
| Current value of for HTTP header "Access-Control-Allow-Origin". More... | |
| gboolean | ignore_http_x_real_ip |
| Current preference for using X_Real_IP from HTTP header. More... | |
| int | per_ip_connection_limit |
| Current maximum number of connection per IP address. More... | |
| int | unix_socket = 0 |
| Unix socket to listen on. More... | |
| int | use_secure_cookie = 1 |
| Whether to use a secure cookie. More... | |
Global settings for GSA.
Definition in file gsad_settings.c.
| const gchar* get_guest_password | ( | ) |
Definition at line 141 of file gsad_settings.c.
References guest_password.
| const gchar* get_guest_username | ( | ) |
Definition at line 129 of file gsad_settings.c.
References guest_username.
| const gchar* get_http_content_security_policy | ( | ) |
Definition at line 177 of file gsad_settings.c.
References http_content_security_policy.
Referenced by add_guest_chart_content_security_headers(), and add_security_headers().

| const gchar* get_http_cors_origin | ( | ) |
Definition at line 201 of file gsad_settings.c.
References http_cors_origin.
Referenced by add_cors_headers().

| const gchar* get_http_guest_chart_content_security_policy | ( | ) |
Definition at line 225 of file gsad_settings.c.
References http_guest_chart_content_security_policy.
Referenced by add_guest_chart_content_security_headers().

| const gchar* get_http_guest_chart_x_frame_options | ( | ) |
Definition at line 213 of file gsad_settings.c.
References http_guest_chart_x_frame_options.
Referenced by add_guest_chart_content_security_headers().

| const gchar* get_http_strict_transport_security | ( | ) |
Definition at line 237 of file gsad_settings.c.
References http_strict_transport_security.
Referenced by add_security_headers().

| const gchar* get_http_x_frame_options | ( | ) |
Definition at line 189 of file gsad_settings.c.
References http_x_frame_options.
Referenced by add_guest_chart_content_security_headers(), and add_security_headers().

| int get_per_ip_connection_limit | ( | ) |
Definition at line 264 of file gsad_settings.c.
References per_ip_connection_limit.
| int get_session_timeout | ( | ) |
Definition at line 153 of file gsad_settings.c.
References session_timeout.
Referenced by attach_sid(), user_get_session_timeout(), and user_session_expired().

| gboolean is_ignore_http_x_real_ip | ( | ) |
Definition at line 249 of file gsad_settings.c.
References ignore_http_x_real_ip.
Referenced by get_client_address().

| gboolean is_unix_socket | ( | ) |
Definition at line 276 of file gsad_settings.c.
References unix_socket.
Referenced by get_client_address(), and save_scanner_gmp().

| gboolean is_use_secure_cookie | ( | ) |
Definition at line 165 of file gsad_settings.c.
References use_secure_cookie.
Referenced by attach_sid(), and remove_sid().

| void set_guest_password | ( | const gchar * | password | ) |
Definition at line 135 of file gsad_settings.c.
References guest_password.
| void set_guest_username | ( | const gchar * | username | ) |
Definition at line 123 of file gsad_settings.c.
References guest_username.
| void set_http_content_security_policy | ( | const gchar * | policy | ) |
Definition at line 171 of file gsad_settings.c.
References http_content_security_policy.
| void set_http_cors_origin | ( | const gchar * | origin | ) |
Definition at line 195 of file gsad_settings.c.
References http_cors_origin.
| void set_http_guest_chart_content_security_policy | ( | const gchar * | policy | ) |
Definition at line 219 of file gsad_settings.c.
References http_guest_chart_content_security_policy.
| void set_http_guest_chart_x_frame_options | ( | const gchar * | options | ) |
Definition at line 207 of file gsad_settings.c.
References http_guest_chart_x_frame_options.
| void set_http_strict_transport_security | ( | const gchar * | policy | ) |
Definition at line 231 of file gsad_settings.c.
References http_strict_transport_security.
| void set_http_x_frame_options | ( | const gchar * | options | ) |
Definition at line 183 of file gsad_settings.c.
References http_x_frame_options.
| void set_ignore_http_x_real_ip | ( | gboolean | ignore | ) |
Definition at line 243 of file gsad_settings.c.
References ignore_http_x_real_ip.
| void set_per_ip_connection_limit | ( | int | limit | ) |
| void set_session_timeout | ( | int | timeout | ) |
Definition at line 147 of file gsad_settings.c.
References session_timeout.
| void set_unix_socket | ( | int | socket | ) |
Definition at line 270 of file gsad_settings.c.
References unix_socket.
| void set_use_secure_cookie | ( | int | secure | ) |
Definition at line 159 of file gsad_settings.c.
References use_secure_cookie.
| const gchar* vendor_version_get | ( | ) |
Get the vendor version.
Definition at line 117 of file gsad_settings.c.
References vendor_version.
Referenced by envelope_gmp(), and gsad_message().

| void vendor_version_set | ( | const gchar * | version | ) |
Set the vendor version.
| [in] | version | Vendor version. |
Definition at line 105 of file gsad_settings.c.
References vendor_version.
| gchar* guest_password = NULL |
Guest password.
Definition at line 40 of file gsad_settings.c.
Referenced by get_guest_password(), and set_guest_password().
| gchar* guest_username = NULL |
Guest username.
Definition at line 35 of file gsad_settings.c.
Referenced by get_guest_username(), and set_guest_username().
| const gchar* http_content_security_policy |
Current value for HTTP header "Content-Security-Policy".
Definition at line 55 of file gsad_settings.c.
Referenced by add_security_headers(), get_http_content_security_policy(), and set_http_content_security_policy().
| const gchar* http_cors_origin |
Current value of for HTTP header "Access-Control-Allow-Origin".
Definition at line 75 of file gsad_settings.c.
Referenced by add_cors_headers(), get_http_cors_origin(), and set_http_cors_origin().
| const gchar* http_guest_chart_content_security_policy |
Current guest chart value for HTTP header "Content-Security-Policy".
Definition at line 65 of file gsad_settings.c.
Referenced by get_http_guest_chart_content_security_policy(), and set_http_guest_chart_content_security_policy().
| const gchar* http_guest_chart_x_frame_options |
Current guest chart specific value for HTTP header "X-Frame-Options".
Definition at line 60 of file gsad_settings.c.
Referenced by get_http_guest_chart_x_frame_options(), and set_http_guest_chart_x_frame_options().
| const gchar* http_strict_transport_security |
Current value of for HTTP header "Strict-Transport-Security".
Definition at line 70 of file gsad_settings.c.
Referenced by add_security_headers(), get_http_strict_transport_security(), and set_http_strict_transport_security().
| const gchar* http_x_frame_options |
Current value for HTTP header "X-Frame-Options".
Definition at line 50 of file gsad_settings.c.
Referenced by add_security_headers(), get_http_x_frame_options(), and set_http_x_frame_options().
| gboolean ignore_http_x_real_ip |
Current preference for using X_Real_IP from HTTP header.
Definition at line 80 of file gsad_settings.c.
Referenced by is_ignore_http_x_real_ip(), and set_ignore_http_x_real_ip().
| int per_ip_connection_limit |
Current maximum number of connection per IP address.
Definition at line 85 of file gsad_settings.c.
Referenced by get_per_ip_connection_limit(), and set_per_ip_connection_limit().
| int session_timeout |
Maximum number of minutes of user idle time.
Definition at line 45 of file gsad_settings.c.
Referenced by get_session_timeout(), and set_session_timeout().
| int unix_socket = 0 |
Unix socket to listen on.
Definition at line 90 of file gsad_settings.c.
Referenced by is_unix_socket(), and set_unix_socket().
| int use_secure_cookie = 1 |
Whether to use a secure cookie.
This is always true when using HTTPS.
Definition at line 97 of file gsad_settings.c.
Referenced by is_use_secure_cookie(), and set_use_secure_cookie().
| gchar* vendor_version = NULL |
Version from vendor, or NULL.
Definition at line 30 of file gsad_settings.c.
Referenced by vendor_version_get(), and vendor_version_set().