OpenVAS Scanner
6.0.0~git
|
Header file for module network. More...
#include "scanneraux.h"
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
#include <netinet/in.h>
#include <sys/select.h>
Go to the source code of this file.
Macros | |
#define | IS_ENCAPS_SSL(x) ((x) >= OPENVAS_ENCAPS_SSLv23 && (x) <= OPENVAS_ENCAPS_TLScustom) |
Typedefs | |
typedef enum openvas_encaps | openvas_encaps_t |
Functions | |
int | open_sock_tcp (struct script_infos *, unsigned int, int) |
int | open_sock_option (struct script_infos *, unsigned int, int, int, int) |
int | recv_line (int, char *, size_t) |
Reads a text from the socket stream into the argument buffer, always. More... | |
int | nrecv (int, void *, int, int) |
int | socket_close (int) |
int | get_sock_infos (int sock, int *r_transport, void **r_tls_session) |
unsigned short * | getpts (char *, int *) |
Converts a string like "-100,200-1024,3000-4000,60000-" into an array. More... | |
int | open_stream_connection (struct script_infos *, unsigned int, int, int) |
int | open_stream_connection_ext (struct script_infos *, unsigned int, int, int, const char *) |
int | open_stream_auto_encaps_ext (struct script_infos *, unsigned int port, int timeout, int force) |
int | write_stream_connection (int, void *buf, int n) |
int | read_stream_connection (int, void *, int) |
int | read_stream_connection_min (int, void *, int, int) |
int | nsend (int, void *, int, int) |
void | add_close_stream_connection_hook (int(*)(int)) |
int | close_stream_connection (int) |
const char * | get_encaps_name (openvas_encaps_t) |
const char * | get_encaps_through (openvas_encaps_t) |
int | open_sock_opt_hn (const char *, unsigned int, int, int, int) |
int | openvas_SSL_init (void) |
Initializes SSL support. More... | |
int | stream_set_buffer (int, int) |
int | stream_get_buffer_sz (int) |
int | stream_get_err (int) |
int | openvas_register_connection (int s, void *ssl, gnutls_certificate_credentials_t certcred, openvas_encaps_t encaps) |
int | openvas_deregister_connection (int) |
int | openvas_get_socket_from_connection (int) |
gnutls_session_t | ovas_get_tlssession_from_connection (int) |
int | stream_zero (fd_set *) |
int | stream_set (int, fd_set *) |
int | os_send (int, void *, int, int) |
int | os_recv (int, void *, int, int) |
int | fd_is_stream (int) |
int | stream_set_timeout (int, int) |
int | socket_negotiate_ssl (int, openvas_encaps_t, struct script_infos *) |
void | socket_get_cert (int, void **, int *) |
int | socket_get_ssl_version (int) |
void | socket_get_ssl_session_id (int, void **, size_t *) |
int | socket_get_ssl_compression (int) |
int | socket_get_ssl_ciphersuite (int) |
Header file for module network.
#define IS_ENCAPS_SSL | ( | x | ) | ((x) >= OPENVAS_ENCAPS_SSLv23 && (x) <= OPENVAS_ENCAPS_TLScustom) |
typedef enum openvas_encaps openvas_encaps_t |
enum openvas_encaps |
void add_close_stream_connection_hook | ( | int(*)(int) | ) |
int close_stream_connection | ( | int | ) |
int fd_is_stream | ( | int | ) |
const char* get_encaps_name | ( | openvas_encaps_t | ) |
const char* get_encaps_through | ( | openvas_encaps_t | ) |
int get_sock_infos | ( | int | sock, |
int * | r_transport, | ||
void ** | r_tls_session | ||
) |
unsigned short* getpts | ( | char * | origexpr, |
int * | len | ||
) |
Converts a string like "-100,200-1024,3000-4000,60000-" into an array.
of port numbers
This function is (c) Fyodor fyodo and was taken from his excellent and outstanding scanner Nmap See r@dh p.comhttp://www.insecure.org/nmap/ for details about Nmap
int nrecv | ( | int | , |
void * | , | ||
int | , | ||
int | |||
) |
int nsend | ( | int | , |
void * | , | ||
int | , | ||
int | |||
) |
int open_sock_opt_hn | ( | const char * | , |
unsigned | int, | ||
int | , | ||
int | , | ||
int | |||
) |
int open_sock_option | ( | struct script_infos * | , |
unsigned | int, | ||
int | , | ||
int | , | ||
int | |||
) |
int open_sock_tcp | ( | struct script_infos * | , |
unsigned | int, | ||
int | |||
) |
int open_stream_auto_encaps_ext | ( | struct script_infos * | , |
unsigned int | port, | ||
int | timeout, | ||
int | force | ||
) |
int open_stream_connection | ( | struct script_infos * | , |
unsigned | int, | ||
int | , | ||
int | |||
) |
int open_stream_connection_ext | ( | struct script_infos * | , |
unsigned | int, | ||
int | , | ||
int | , | ||
const char * | |||
) |
int openvas_deregister_connection | ( | int | ) |
int openvas_get_socket_from_connection | ( | int | ) |
int openvas_register_connection | ( | int | soc, |
void * | ssl, | ||
gnutls_certificate_credentials_t | certcred, | ||
openvas_encaps_t | encaps | ||
) |
int openvas_SSL_init | ( | void | ) |
Initializes SSL support.
int os_recv | ( | int | , |
void * | , | ||
int | , | ||
int | |||
) |
int os_send | ( | int | , |
void * | , | ||
int | , | ||
int | |||
) |
gnutls_session_t ovas_get_tlssession_from_connection | ( | int | ) |
int read_stream_connection | ( | int | , |
void * | , | ||
int | |||
) |
int read_stream_connection_min | ( | int | , |
void * | , | ||
int | , | ||
int | |||
) |
int recv_line | ( | int | soc, |
char * | buf, | ||
size_t | bufsiz | ||
) |
Reads a text from the socket stream into the argument buffer, always.
appending a '\0' byte.
buf | Buffer to read into. |
int socket_close | ( | int | ) |
void socket_get_cert | ( | int | , |
void ** | , | ||
int * | |||
) |
int socket_get_ssl_ciphersuite | ( | int | ) |
int socket_get_ssl_compression | ( | int | ) |
void socket_get_ssl_session_id | ( | int | , |
void ** | , | ||
size_t * | |||
) |
int socket_get_ssl_version | ( | int | ) |
int socket_negotiate_ssl | ( | int | , |
openvas_encaps_t | , | ||
struct script_infos * | |||
) |
int stream_get_buffer_sz | ( | int | ) |
int stream_get_err | ( | int | ) |
int stream_set | ( | int | , |
fd_set * | |||
) |
int stream_set_buffer | ( | int | , |
int | |||
) |
int stream_set_timeout | ( | int | , |
int | |||
) |
int stream_zero | ( | fd_set * | ) |
int write_stream_connection | ( | int | , |
void * | buf, | ||
int | n | ||
) |