OpenVAS Scanner 23.23.1
nasl_socket.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Greenbone AG
2 * SPDX-FileCopyrightText: 2002-2003 Michel Arboi
3 * SPDX-FileCopyrightText: 2002-2003 Renaud Deraison
4 *
5 * SPDX-License-Identifier: GPL-2.0-only
6 */
7
8/* -------------------------------------------------------------------- *
9 * This file contains all the functions related to the handling of the *
10 * sockets within a NASL script - namely, this is the implementation *
11 * of open_(priv_)?sock_(udp|tcp)(), send(), recv(), recv_line() and *
12 * close(). *
13 *----------------------------------------------------------------------*/
14
15/*--------------------------------------------------------------------------*/
16#ifndef NASL_NASL_SOCKET_H
17#define NASL_NASL_SOCKET_H
18
19#include "nasl_lex_ctxt.h"
20#include "nasl_tree.h"
21
26/* private func */
31
36
39
44
49
64
67
72
75
78
79#endif
struct struct_lex_ctxt lex_ctxt
tree_cell * nasl_send(lex_ctxt *)
Definition nasl_socket.c:960
tree_cell * nasl_get_sock_info(lex_ctxt *lexic)
Get info pertaining to a socket.
Definition nasl_socket.c:1297
tree_cell * nasl_open_priv_sock_udp(lex_ctxt *)
Definition nasl_socket.c:401
tree_cell * nasl_socket_get_ssl_ciphersuite(lex_ctxt *)
Definition nasl_socket.c:737
tree_cell * nasl_close_socket(lex_ctxt *)
Definition nasl_socket.c:1012
tree_cell * nasl_leave_multicast_group(lex_ctxt *)
Definition nasl_socket.c:1123
tree_cell * nasl_get_mtu(lex_ctxt *)
Definition nasl_socket.c:943
tree_cell * nasl_socket_get_cert(lex_ctxt *)
Definition nasl_socket.c:676
tree_cell * nasl_socket_get_error(lex_ctxt *)
Definition nasl_socket.c:1195
tree_cell * nasl_socket_get_ssl_session_id(lex_ctxt *)
Definition nasl_socket.c:698
tree_cell * nasl_socket_get_ssl_version(lex_ctxt *)
Definition nasl_socket.c:721
tree_cell * nasl_recv(lex_ctxt *)
Definition nasl_socket.c:754
tree_cell * nasl_open_priv_sock_tcp(lex_ctxt *)
Definition nasl_socket.c:395
tree_cell * nasl_socket_ssl_do_handshake(lex_ctxt *)
Do a re-handshake of the TLS/SSL protocol.
Definition nasl_socket.c:658
tree_cell * nasl_socket_check_ssl_safe_renegotiation(lex_ctxt *)
Check if Secure Renegotiation is supported in the server side.
Definition nasl_socket.c:626
tree_cell * nasl_join_multicast_group(lex_ctxt *)
Definition nasl_socket.c:1057
tree_cell * nasl_open_sock_tcp_bufsz(lex_ctxt *, int)
Definition nasl_socket.c:409
tree_cell * nasl_socket_cert_verify(lex_ctxt *)
Verify a certificate.
Definition nasl_socket.c:1496
tree_cell * nasl_recv_line(lex_ctxt *)
Definition nasl_socket.c:847
tree_cell * nasl_socket_negotiate_ssl(lex_ctxt *)
Definition nasl_socket.c:582
tree_cell * nasl_open_sock_tcp(lex_ctxt *)
Open a TCP socket to the target host.
Definition nasl_socket.c:509
tree_cell * nasl_get_source_port(lex_ctxt *)
Definition nasl_socket.c:1155
tree_cell * nasl_open_sock_udp(lex_ctxt *)
Definition nasl_socket.c:521
struct TC tree_cell