OpenVAS Scanner  22.7.9
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 
22 tree_cell *
24 tree_cell *
26 /* private func */
27 tree_cell *
29 tree_cell *
31 
32 tree_cell *
34 tree_cell *
36 
37 tree_cell *
39 
40 tree_cell *
42 tree_cell *
44 
45 tree_cell *
47 tree_cell *
49 
50 tree_cell *
52 tree_cell *
54 tree_cell *
56 tree_cell *
58 tree_cell *
60 tree_cell *
62 tree_cell *
64 
65 tree_cell *
67 
68 tree_cell *
70 tree_cell *
72 
73 tree_cell *
75 
76 tree_cell *
78 
79 #endif
nasl_socket_check_ssl_safe_renegotiation
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
nasl_recv_line
tree_cell * nasl_recv_line(lex_ctxt *)
Definition: nasl_socket.c:847
nasl_socket_get_error
tree_cell * nasl_socket_get_error(lex_ctxt *)
Definition: nasl_socket.c:1195
nasl_open_sock_udp
tree_cell * nasl_open_sock_udp(lex_ctxt *)
Definition: nasl_socket.c:521
nasl_open_priv_sock_tcp
tree_cell * nasl_open_priv_sock_tcp(lex_ctxt *)
Definition: nasl_socket.c:395
nasl_get_sock_info
tree_cell * nasl_get_sock_info(lex_ctxt *lexic)
Get info pertaining to a socket.
Definition: nasl_socket.c:1297
nasl_get_source_port
tree_cell * nasl_get_source_port(lex_ctxt *)
Definition: nasl_socket.c:1155
nasl_socket_cert_verify
tree_cell * nasl_socket_cert_verify(lex_ctxt *)
Verify a certificate.
Definition: nasl_socket.c:1496
nasl_leave_multicast_group
tree_cell * nasl_leave_multicast_group(lex_ctxt *)
Definition: nasl_socket.c:1123
nasl_recv
tree_cell * nasl_recv(lex_ctxt *)
Definition: nasl_socket.c:754
nasl_lex_ctxt.h
nasl_open_sock_tcp_bufsz
tree_cell * nasl_open_sock_tcp_bufsz(lex_ctxt *, int)
Definition: nasl_socket.c:409
nasl_socket_get_cert
tree_cell * nasl_socket_get_cert(lex_ctxt *)
Definition: nasl_socket.c:676
nasl_socket_ssl_do_handshake
tree_cell * nasl_socket_ssl_do_handshake(lex_ctxt *)
Do a re-handshake of the TLS/SSL protocol.
Definition: nasl_socket.c:658
nasl_open_sock_tcp
tree_cell * nasl_open_sock_tcp(lex_ctxt *)
Open a TCP socket to the target host.
Definition: nasl_socket.c:509
nasl_socket_get_ssl_session_id
tree_cell * nasl_socket_get_ssl_session_id(lex_ctxt *)
Definition: nasl_socket.c:698
TC
Definition: nasl_tree.h:94
struct_lex_ctxt
Definition: nasl_lex_ctxt.h:23
nasl_get_mtu
tree_cell * nasl_get_mtu(lex_ctxt *)
Definition: nasl_socket.c:943
nasl_socket_negotiate_ssl
tree_cell * nasl_socket_negotiate_ssl(lex_ctxt *)
Definition: nasl_socket.c:582
nasl_open_priv_sock_udp
tree_cell * nasl_open_priv_sock_udp(lex_ctxt *)
Definition: nasl_socket.c:401
nasl_join_multicast_group
tree_cell * nasl_join_multicast_group(lex_ctxt *)
Definition: nasl_socket.c:1057
nasl_socket_get_ssl_version
tree_cell * nasl_socket_get_ssl_version(lex_ctxt *)
Definition: nasl_socket.c:721
nasl_tree.h
nasl_close_socket
tree_cell * nasl_close_socket(lex_ctxt *)
Definition: nasl_socket.c:1012
nasl_send
tree_cell * nasl_send(lex_ctxt *)
Definition: nasl_socket.c:960
nasl_socket_get_ssl_ciphersuite
tree_cell * nasl_socket_get_ssl_ciphersuite(lex_ctxt *)
Definition: nasl_socket.c:737