|
Greenbone Security Assistant
8.0.0
|
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 * | label_name = NULL |
| 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 | ( | ) |
| const gchar* get_guest_username | ( | ) |
Definition at line 149 of file gsad_settings.c.
References guest_username.
Referenced by user_add().

| const gchar* get_http_content_security_policy | ( | ) |
Definition at line 197 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 221 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 245 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 233 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 257 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 209 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 284 of file gsad_settings.c.
References per_ip_connection_limit.
| int get_session_timeout | ( | ) |
Definition at line 173 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 269 of file gsad_settings.c.
References ignore_http_x_real_ip.
Referenced by get_client_address().

| gboolean is_unix_socket | ( | ) |
Definition at line 296 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 185 of file gsad_settings.c.
References use_secure_cookie.
Referenced by attach_sid(), and remove_sid().

| int label_name_set | ( | const gchar * | name | ) |
Set the login label.
| [in] | name | New login label name. |
Definition at line 132 of file gsad_settings.c.
References label_name.
| void set_guest_password | ( | const gchar * | password | ) |
| void set_guest_username | ( | const gchar * | username | ) |
| void set_http_content_security_policy | ( | const gchar * | policy | ) |
Definition at line 191 of file gsad_settings.c.
References http_content_security_policy.
| void set_http_cors_origin | ( | const gchar * | origin | ) |
Definition at line 215 of file gsad_settings.c.
References http_cors_origin.
| void set_http_guest_chart_content_security_policy | ( | const gchar * | policy | ) |
Definition at line 239 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 227 of file gsad_settings.c.
References http_guest_chart_x_frame_options.
| void set_http_strict_transport_security | ( | const gchar * | policy | ) |
Definition at line 251 of file gsad_settings.c.
References http_strict_transport_security.
| void set_http_x_frame_options | ( | const gchar * | options | ) |
Definition at line 203 of file gsad_settings.c.
References http_x_frame_options.
| void set_ignore_http_x_real_ip | ( | gboolean | ignore | ) |
Definition at line 263 of file gsad_settings.c.
References ignore_http_x_real_ip.
| void set_per_ip_connection_limit | ( | int | limit | ) |
Definition at line 275 of file gsad_settings.c.
References per_ip_connection_limit.
| void set_session_timeout | ( | int | timeout | ) |
Definition at line 167 of file gsad_settings.c.
References session_timeout.
| void set_unix_socket | ( | int | socket | ) |
| void set_use_secure_cookie | ( | int | secure | ) |
| const gchar* vendor_version_get | ( | ) |
Get the vendor version.
Definition at line 119 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 107 of file gsad_settings.c.
References vendor_version.
| gchar* guest_password = NULL |
Guest password.
Definition at line 42 of file gsad_settings.c.
Referenced by get_guest_password(), and set_guest_password().
| gchar* guest_username = NULL |
Guest username.
Definition at line 37 of file gsad_settings.c.
Referenced by get_guest_username(), set_guest_username(), and user_add().
| const gchar* http_content_security_policy |
Current value for HTTP header "Content-Security-Policy".
Definition at line 57 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 77 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 67 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 62 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 72 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 52 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 82 of file gsad_settings.c.
Referenced by is_ignore_http_x_real_ip(), and set_ignore_http_x_real_ip().
| gchar* label_name = NULL |
Definition at line 32 of file gsad_settings.c.
Referenced by label_name_set().
| int per_ip_connection_limit |
Current maximum number of connection per IP address.
Definition at line 87 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 47 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 92 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 99 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().