|
OpenVAS Scanner 23.40.3
|


Go to the source code of this file.
Definition at line 1012 of file nasl_socket.c.
References close_stream_connection(), FAKE_CELL, fd_is_stream(), get_int_var_by_num(), lowest_socket, nasl_perror(), rm_udp_data(), struct_lex_ctxt::script_infos, and wait_before_next_probe().
Referenced by http_close_socket().


Definition at line 943 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, get_mtu(), TC::i_val, nasl_perror(), plug_get_host_ip(), struct_lex_ctxt::script_infos, and TC::x.

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. |
Definition at line 1297 of file nasl_socket.c.
References add_var_to_list(), alloc_typed_cell(), CONST_INT, CONST_STR, DYN_ARRAY, FAKE_CELL, get_encaps_name(), get_int_var_by_name(), get_int_var_by_num(), get_sock_infos(), get_str_var_by_num(), get_var_type_by_num(), TC::i_val, nasl_perror(), TC::ref_val, st_nasl_string::s_siz, st_nasl_string::s_val, TC::size, TC::str_val, st_a_nasl_var::v, st_a_nasl_var::v_str, VAR2_DATA, VAR2_STRING, st_a_nasl_var::var_type, and TC::x.

Definition at line 1155 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, fd_is_stream(), get_int_var_by_num(), TC::i_val, nasl_perror(), openvas_get_socket_from_connection(), and TC::x.

Definition at line 1057 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, get_str_var_by_num(), jmg_desc, jmg_max, and nasl_perror().

Definition at line 1123 of file nasl_socket.c.
References FAKE_CELL, get_str_var_by_num(), jmg_desc, jmg_max, and nasl_perror().

Definition at line 395 of file nasl_socket.c.
References nasl_open_privileged_socket().

Definition at line 401 of file nasl_socket.c.
References nasl_open_privileged_socket().

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. |
Definition at line 509 of file nasl_socket.c.
References nasl_open_sock_tcp_bufsz().

Definition at line 409 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_name(), get_int_var_by_num(), get_str_var_by_name(), get_var_type_by_name(), TC::i_val, nasl_perror(), NO_PRIORITY_FLAGS, open_stream_auto_encaps_ext(), open_stream_connection_ext(), OPENVAS_ENCAPS_TLScustom, struct_lex_ctxt::recv_timeout, struct_lex_ctxt::script_infos, stream_set_buffer(), VAR2_DATA, VAR2_STRING, wait_before_next_probe(), and TC::x.
Referenced by http_open_socket(), and nasl_open_sock_tcp().


Definition at line 521 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_num(), TC::i_val, lowest_socket, plug_get_host_ip(), struct_lex_ctxt::script_infos, and TC::x.

Definition at line 754 of file nasl_socket.c.
References alloc_typed_cell(), CONST_DATA, fd_is_stream(), get_int_var_by_name(), get_udp_data(), len, read_stream_connection_min(), struct_lex_ctxt::recv_timeout, struct_lex_ctxt::script_infos, TC::size, TC::str_val, stream_set_timeout(), timeval(), and TC::x.

Definition at line 847 of file nasl_socket.c.
References alloc_typed_cell(), CONST_DATA, fd_is_stream(), get_int_var_by_name(), len, nasl_perror(), read_stream_connection_min(), TC::size, TC::str_val, stream_get_buffer_sz(), stream_set_buffer(), and TC::x.

Definition at line 960 of file nasl_socket.c.
References add_udp_data(), alloc_typed_cell(), CONST_INT, fd_is_stream(), get_int_var_by_name(), get_str_var_by_name(), get_udp_payload_size(), get_var_size_by_name(), TC::i_val, length, nasl_perror(), nsend(), option, plug_get_host_ip(), struct_lex_ctxt::script_infos, wait_before_next_probe(), and TC::x.
Referenced by nasl_send_capture().


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. |
Definition at line 1496 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_name(), get_sock_infos(), TC::i_val, nasl_perror(), and TC::x.

Check if Secure Renegotiation is supported in the server side.
Definition at line 626 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_name(), TC::i_val, nasl_perror(), socket_ssl_safe_renegotiation_status(), and TC::x.

Definition at line 676 of file nasl_socket.c.
References alloc_typed_cell(), CONST_DATA, get_int_var_by_name(), nasl_perror(), TC::size, socket_get_cert(), TC::str_val, and TC::x.

Definition at line 1195 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, fd_is_stream(), get_int_var_by_num(), TC::i_val, NASL_ERR_ECONNRESET, NASL_ERR_ETIMEDOUT, NASL_ERR_EUNREACH, NASL_ERR_NOERR, stream_get_err(), and TC::x.

Definition at line 737 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_name(), TC::i_val, socket_get_ssl_ciphersuite(), and TC::x.

Definition at line 698 of file nasl_socket.c.
References alloc_typed_cell(), CONST_DATA, get_int_var_by_name(), nasl_perror(), TC::size, socket_get_ssl_session_id(), TC::str_val, and TC::x.

Definition at line 721 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_name(), TC::i_val, socket_get_ssl_version(), and TC::x.

Definition at line 582 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_name(), TC::i_val, IS_ENCAPS_SSL, nasl_perror(), OPENVAS_ENCAPS_TLScustom, struct_lex_ctxt::script_infos, socket_negotiate_ssl(), and TC::x.

Do a re-handshake of the TLS/SSL protocol.
| [in] | lexic | Lexical context of NASL interpreter. |
Definition at line 658 of file nasl_socket.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_name(), TC::i_val, nasl_perror(), socket_ssl_do_handshake(), and TC::x.
