|
OpenVAS Scanner 23.23.1
|
The NASL socket API. More...
#include "nasl_socket.h"#include "../misc/network.h"#include "../misc/pcap_openvas.h"#include "../misc/plugutils.h"#include "../misc/support.h"#include "exec.h"#include "nasl.h"#include "nasl_debug.h"#include "nasl_func.h"#include "nasl_global_ctxt.h"#include "nasl_lex_ctxt.h"#include "nasl_packet_forgery.h"#include "nasl_tree.h"#include "nasl_var.h"#include <arpa/inet.h>#include <errno.h>#include <fcntl.h>#include <gnutls/gnutls.h>#include <gvm/base/logging.h>#include <gvm/base/networking.h>#include <gvm/base/prefs.h>#include <net/if.h>#include <netinet/in.h>#include <stdlib.h>#include <string.h>#include <sys/ioctl.h>#include <sys/time.h>#include <unistd.h>Data Structures | |
| struct | udp_record |
| struct | jmg |
Macros | |
| #define | EADDRNOTAVAIL EADDRINUSE |
| #define | G_LOG_DOMAIN "lib nasl" |
| GLib logging domain. | |
Variables | |
| int | lowest_socket = 0 |
| static struct jmg * | jmg_desc = NULL |
| static int | jmg_max = 0 |
The NASL socket API.
This file contains all the functions related to the handling of the sockets within a NASL script - for example the implementation of the NASL built-ins open_sock_tcp, send, recv, recv_line, and close.
| #define EADDRNOTAVAIL EADDRINUSE |
| #define G_LOG_DOMAIN "lib nasl" |
GLib logging domain.
|
static |
|
static |
|
static |
|
static |
|
static |
Get info pertaining to a socket.
This function is used to retrieve various information about an active socket. It requires the NASL socket number and a string to select the information to retrieve.
Supported keywords are:
| [in] | lexic | Lexical context of the NASL interpreter. |
Open a TCP socket to the target host.
This function is used to create a TCP connection to the target host. It requires the port number as its argument and has various optional named arguments to control encapsulation, timeout and buffering.
| [in] | lexic | Lexical context of the NASL interpreter. |
Verify a certificate.
This function is used to retrieve and verify a certificate from an active socket. It requires the NASL socket number.
| [in] | lexic | Lexical context of the NASL interpreter. |
Check if Secure Renegotiation is supported in the server side.
Do a re-handshake of the TLS/SSL protocol.
| [in] | lexic | Lexical context of NASL interpreter. |
|
static |
|
static |
|
static |
|
static |
|
static |
| int lowest_socket = 0 |