|
OpenVAS Scanner 23.32.3
|
Header file: user agent functions prototypes. More...


Go to the source code of this file.
Functions | |
| int | user_agent_get (struct ipc_context *, char **) |
| Get user-agent. | |
| gchar * | user_agent_set (const gchar *) |
| Set user-agent. | |
Header file: user agent functions prototypes.
Definition in file user_agent.h.
| int user_agent_get | ( | struct ipc_context * | ipc_context, |
| char ** | useragent ) |
Get user-agent.
param[in] ipc_context IPC context for sending data to the parent process param[out] useragent the user agent if any set or an empty string.
Definition at line 114 of file user_agent.c.
References send_user_agent_via_ipc(), user_agent, and user_agent_create().
Referenced by _http2_req(), and _http_req().


| gchar * user_agent_set | ( | const gchar * | ua | ) |
Set user-agent.
Set the global user agent. This function overwrite the existing UA. Null or empty string are not allowed.
| [in] | ua | user-agent to be set. |
Return the old User-Agent. It must be free by the caller
Definition at line 89 of file user_agent.c.
References user_agent.
Referenced by process_ipc_data().
