Skip to content

Commit

Permalink
Add: implement http2 nasl builtin function in rust
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola authored and nichtsfrei committed Apr 30, 2024
1 parent 0fd5006 commit b421bab
Show file tree
Hide file tree
Showing 8 changed files with 609 additions and 3 deletions.
2 changes: 0 additions & 2 deletions nasl/nasl_http2.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ _http2_req (lex_ctxt *lexic, KEYWORD keyword)
return NULL;
}
}
//#include <signal.h>
// raise(SIGINT);

handle = handle_table[table_slot]->handle;

Expand Down
17 changes: 17 additions & 0 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

[workspace]
resolver = "2"
members = [
"nasl-builtin-knowledge-base",
"nasl-builtin-raw-ip",
"nasl-builtin-cryptographic",
"nasl-builtin-ssh",
"nasl-builtin-http2",
"nasl-builtin-host",
"nasl-builtin-string",
"nasl-builtin-misc",
Expand Down
20 changes: 20 additions & 0 deletions rust/nasl-builtin-http2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "nasl-builtin-http2"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
h2 = "0.4.4"
http = "1.1.0"
nasl-builtin-utils = {path = "../nasl-builtin-utils"}
nasl-syntax = {path = "../nasl-syntax"}
rustls = "0.23.5"
rustls-pemfile = "2.1.2"
storage = {path = "../storage"}
tokio = { version = "1.28.1", features = ["full"] }
tokio-rustls = "0.26.0"

[dev-dependencies]
nasl-interpreter = {path = "../nasl-interpreter"}
3 changes: 3 additions & 0 deletions rust/nasl-builtin-http2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Implements

## Missing
Loading

0 comments on commit b421bab

Please sign in to comment.