OpenVAS Scanner  22.7.9
nasl_http.h File Reference
#include "nasl_lex_ctxt.h"
Include dependency graph for nasl_http.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

tree_cellhttp_open_socket (lex_ctxt *)
 
tree_cellhttp_close_socket (lex_ctxt *)
 
tree_cellhttp_get (lex_ctxt *)
 
tree_cellhttp_head (lex_ctxt *)
 
tree_cellhttp_post (lex_ctxt *)
 
tree_cellhttp_delete (lex_ctxt *)
 
tree_cellhttp_put (lex_ctxt *)
 
tree_cellnasl_http_recv_headers (lex_ctxt *)
 
tree_cellcgibin (lex_ctxt *)
 
tree_cellnasl_is_cgi_installed (lex_ctxt *)
 
tree_cellnasl_http_keepalive_send_recv (lex_ctxt *)
 
tree_cellnasl_http_share_exists (lex_ctxt *)
 

Function Documentation

◆ cgibin()

tree_cell* cgibin ( lex_ctxt )

Definition at line 224 of file nasl_http.c.

225 {
226  const char *path = prefs_get ("cgi_path");
227  tree_cell *retc;
228 
229  (void) lexic;
230  if (path == NULL)
231  path = "/cgi-bin:/scripts";
232  retc = alloc_typed_cell (CONST_DATA);
233  retc->x.str_val = g_strdup (path);
234  retc->size = strlen (path);
235 
236  return retc;
237 }

References alloc_typed_cell(), CONST_DATA, TC::size, TC::str_val, and TC::x.

Here is the call graph for this function:

◆ http_close_socket()

tree_cell* http_close_socket ( lex_ctxt )

Definition at line 41 of file nasl_http.c.

42 {
43  return nasl_close_socket (lexic);
44 }

References nasl_close_socket().

Here is the call graph for this function:

◆ http_delete()

tree_cell* http_delete ( lex_ctxt )

Definition at line 207 of file nasl_http.c.

208 {
209  return _http_req (lexic, "DELETE");
210 }

References _http_req().

Here is the call graph for this function:

◆ http_get()

tree_cell* http_get ( lex_ctxt )

Definition at line 176 of file nasl_http.c.

177 {
178  return _http_req (lexic, "GET");
179 }

References _http_req().

Referenced by plugin_do_run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ http_head()

tree_cell* http_head ( lex_ctxt )

Definition at line 188 of file nasl_http.c.

189 {
190  return _http_req (lexic, "HEAD");
191 }

References _http_req().

Here is the call graph for this function:

◆ http_open_socket()

tree_cell* http_open_socket ( lex_ctxt )

Definition at line 35 of file nasl_http.c.

36 {
37  return nasl_open_sock_tcp_bufsz (lexic, 65536);
38 }

References nasl_open_sock_tcp_bufsz().

Here is the call graph for this function:

◆ http_post()

tree_cell* http_post ( lex_ctxt )

Definition at line 198 of file nasl_http.c.

199 {
200  return _http_req (lexic, "POST");
201 }

References _http_req().

Here is the call graph for this function:

◆ http_put()

tree_cell* http_put ( lex_ctxt )

Definition at line 216 of file nasl_http.c.

217 {
218  return _http_req (lexic, "PUT");
219 }

References _http_req().

Here is the call graph for this function:

◆ nasl_http_keepalive_send_recv()

tree_cell* nasl_http_keepalive_send_recv ( lex_ctxt )

◆ nasl_http_recv_headers()

tree_cell* nasl_http_recv_headers ( lex_ctxt )

◆ nasl_http_share_exists()

tree_cell* nasl_http_share_exists ( lex_ctxt )

◆ nasl_is_cgi_installed()

tree_cell* nasl_is_cgi_installed ( lex_ctxt )
nasl_close_socket
tree_cell * nasl_close_socket(lex_ctxt *lexic)
Definition: nasl_socket.c:1012
CONST_DATA
@ CONST_DATA
Definition: nasl_tree.h:82
TC::str_val
char * str_val
Definition: nasl_tree.h:103
TC::x
union TC::@5 x
TC::size
int size
Definition: nasl_tree.h:99
nasl_open_sock_tcp_bufsz
tree_cell * nasl_open_sock_tcp_bufsz(lex_ctxt *lexic, int bufsz)
Definition: nasl_socket.c:409
TC
Definition: nasl_tree.h:94
_http_req
static tree_cell * _http_req(lex_ctxt *lexic, char *keyword)
Definition: nasl_http.c:63
alloc_typed_cell
tree_cell * alloc_typed_cell(int typ)
Definition: nasl_tree.c:28