OpenVAS Scanner 21.4.1
nasl_socket.h
Go to the documentation of this file.
1/* Based on work Copyright (C) 2002 - 2003 Michel Arboi and Renaud Deraison
2 *
3 * SPDX-License-Identifier: GPL-2.0-only
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * version 2 as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19/* -------------------------------------------------------------------- *
20 * This file contains all the functions related to the handling of the *
21 * sockets within a NASL script - namely, this is the implementation *
22 * of open_(priv_)?sock_(udp|tcp)(), send(), recv(), recv_line() and *
23 * close(). *
24 *----------------------------------------------------------------------*/
25
26/*--------------------------------------------------------------------------*/
27#ifndef NASL_SOCKET_H
28#define NASL_SOCKET_H
29
34/* private func */
39
44
63
66
71
74
77
78#endif
tree_cell * nasl_send(lex_ctxt *)
Definition: nasl_socket.c:861
tree_cell * nasl_get_sock_info(lex_ctxt *lexic)
Get info pertaining to a socket.
Definition: nasl_socket.c:1190
tree_cell * nasl_open_priv_sock_udp(lex_ctxt *)
Definition: nasl_socket.c:409
tree_cell * nasl_socket_get_ssl_ciphersuite(lex_ctxt *)
Definition: nasl_socket.c:684
tree_cell * nasl_close_socket(lex_ctxt *)
Definition: nasl_socket.c:905
tree_cell * nasl_leave_multicast_group(lex_ctxt *)
Definition: nasl_socket.c:1016
tree_cell * nasl_socket_get_cert(lex_ctxt *)
Definition: nasl_socket.c:623
tree_cell * nasl_socket_get_error(lex_ctxt *)
Definition: nasl_socket.c:1088
tree_cell * nasl_socket_get_ssl_session_id(lex_ctxt *)
Definition: nasl_socket.c:645
tree_cell * nasl_socket_get_ssl_version(lex_ctxt *)
Definition: nasl_socket.c:668
tree_cell * nasl_recv(lex_ctxt *)
Definition: nasl_socket.c:701
tree_cell * nasl_open_priv_sock_tcp(lex_ctxt *)
Definition: nasl_socket.c:403
tree_cell * nasl_join_multicast_group(lex_ctxt *)
Definition: nasl_socket.c:950
tree_cell * nasl_open_sock_tcp_bufsz(lex_ctxt *, int)
Definition: nasl_socket.c:417
tree_cell * nasl_socket_cert_verify(lex_ctxt *)
Verify a certificate.
Definition: nasl_socket.c:1389
tree_cell * nasl_recv_line(lex_ctxt *)
Definition: nasl_socket.c:795
tree_cell * nasl_socket_negotiate_ssl(lex_ctxt *)
Definition: nasl_socket.c:590
tree_cell * nasl_open_sock_tcp(lex_ctxt *)
Open a TCP socket to the target host.
Definition: nasl_socket.c:517
tree_cell * nasl_get_source_port(lex_ctxt *)
Definition: nasl_socket.c:1048
tree_cell * nasl_open_sock_udp(lex_ctxt *)
Definition: nasl_socket.c:529
Definition: nasl_tree.h:105
Definition: nasl_lex_ctxt.h:34