26 #ifndef OPENVAS_MANAGER_SCANNER_H 27 #define OPENVAS_MANAGER_SCANNER_H 29 #include <gnutls/gnutls.h> int openvas_scanner_get_nfds(int)
Get the nfds value to use for a select() call.
int openvas_scanner_read()
Read as much from the server as the from_scanner buffer will.
int openvas_scanner_set_unix(const char *)
Set the scanner's unix socket path.
int openvas_scanner_peek()
Check if there is any data to receive from connected Scanner socket.
int openvas_scanner_connected()
Whether we have started a connection to the Scanner using openvas_scanner_connect().
int openvas_scanner_write(int)
Write as much as possible from the to_scanner buffer to the scanner.
int openvas_scanner_close()
Finish the connection to the Scanner and free internal buffers.
void openvas_scanner_set_certs(const char *, const char *, const char *)
Set the scanner's CA Certificate, and public/private key pair.
int openvas_scanner_connect()
Create a new connection to the scanner and set it as current scanner.
int openvas_scanner_wait()
Wait for the scanner socket to be writable.
int openvas_scanner_full()
Check whether the buffer for data from Scanner is full.
int openvas_scanner_realloc()
Reallocates the from_scanner buffer to a higher size.
int openvas_scanner_session_peek()
Check if there is any data to receive from connected Scanner session.
void openvas_scanner_fd_set(fd_set *)
Add connected to Scanner's socket to an fd_set.
void openvas_scanner_free()
Free the scanner allocated data. Doesn't close socket and terminate the session.
int openvas_scanner_is_loading()
Checks whether the connected to OpenVAS Scanner is still loading plugins. To be called right after op...
void openvas_scanner_fork()
Reset Scanner variables after a fork.
int openvas_scanner_fd_isset(fd_set *)
Check if connected to Scanner is set in an fd_set.
int openvas_scanner_set_address(const char *, int)
Set the scanner's address and port. Will try to resolve addr if it is a hostname. ...
int openvas_scanner_init(int)
Initializes the already setup connection with the Scanner.