OpenVAS Scanner  7.0.1~git
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 
30 tree_cell *
32 tree_cell *
34 /* private func */
35 tree_cell *
37 tree_cell *
39 
40 tree_cell *
42 tree_cell *
44 
45 tree_cell *
47 tree_cell *
49 tree_cell *
51 tree_cell *
53 tree_cell *
55 tree_cell *
57 tree_cell *
59 tree_cell *
61 tree_cell *
63 
64 tree_cell *
66 
67 tree_cell *
69 tree_cell *
71 
72 tree_cell *
74 
75 tree_cell *
77 
78 #endif
nasl_recv_line
tree_cell * nasl_recv_line(lex_ctxt *)
Definition: nasl_socket.c:795
nasl_socket_get_error
tree_cell * nasl_socket_get_error(lex_ctxt *)
Definition: nasl_socket.c:1088
nasl_open_sock_udp
tree_cell * nasl_open_sock_udp(lex_ctxt *)
Definition: nasl_socket.c:529
nasl_open_priv_sock_tcp
tree_cell * nasl_open_priv_sock_tcp(lex_ctxt *)
Definition: nasl_socket.c:403
nasl_get_sock_info
tree_cell * nasl_get_sock_info(lex_ctxt *lexic)
Get info pertaining to a socket.
Definition: nasl_socket.c:1190
nasl_get_source_port
tree_cell * nasl_get_source_port(lex_ctxt *)
Definition: nasl_socket.c:1048
nasl_socket_cert_verify
tree_cell * nasl_socket_cert_verify(lex_ctxt *)
Verify a certificate.
Definition: nasl_socket.c:1389
nasl_leave_multicast_group
tree_cell * nasl_leave_multicast_group(lex_ctxt *)
Definition: nasl_socket.c:1016
nasl_recv
tree_cell * nasl_recv(lex_ctxt *)
Definition: nasl_socket.c:701
nasl_open_sock_tcp_bufsz
tree_cell * nasl_open_sock_tcp_bufsz(lex_ctxt *, int)
Definition: nasl_socket.c:417
nasl_socket_get_cert
tree_cell * nasl_socket_get_cert(lex_ctxt *)
Definition: nasl_socket.c:623
nasl_open_sock_tcp
tree_cell * nasl_open_sock_tcp(lex_ctxt *)
Open a TCP socket to the target host.
Definition: nasl_socket.c:517
nasl_socket_get_ssl_session_id
tree_cell * nasl_socket_get_ssl_session_id(lex_ctxt *)
Definition: nasl_socket.c:645
TC
Definition: nasl_tree.h:104
struct_lex_ctxt
Definition: nasl_lex_ctxt.h:33
nasl_socket_negotiate_ssl
tree_cell * nasl_socket_negotiate_ssl(lex_ctxt *)
Definition: nasl_socket.c:590
nasl_open_priv_sock_udp
tree_cell * nasl_open_priv_sock_udp(lex_ctxt *)
Definition: nasl_socket.c:409
nasl_join_multicast_group
tree_cell * nasl_join_multicast_group(lex_ctxt *)
Definition: nasl_socket.c:950
nasl_socket_get_ssl_version
tree_cell * nasl_socket_get_ssl_version(lex_ctxt *)
Definition: nasl_socket.c:668
nasl_close_socket
tree_cell * nasl_close_socket(lex_ctxt *)
Definition: nasl_socket.c:905
nasl_send
tree_cell * nasl_send(lex_ctxt *)
Definition: nasl_socket.c:861
nasl_socket_get_ssl_ciphersuite
tree_cell * nasl_socket_get_ssl_ciphersuite(lex_ctxt *)
Definition: nasl_socket.c:684