Skip to content

Commit

Permalink
Add: NASL bultin functions for certificate handling
Browse files Browse the repository at this point in the history
Added functions: cert_open, cert_query, cert_close
  • Loading branch information
Kraemii committed Nov 27, 2024
1 parent 104f317 commit c38c5bf
Show file tree
Hide file tree
Showing 5 changed files with 631 additions and 25 deletions.
166 changes: 155 additions & 11 deletions rust/Cargo.lock

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

26 changes: 14 additions & 12 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ rustls-pemfile = "2.1.2"
rustls-pemfile-old = { version = "1.0.2", package = "rustls-pemfile" }
sequoia-ipc = "0.30.1"
sequoia-openpgp = { version = "1.16.1", default-features = false, features = [
"crypto-openssl",
"crypto-openssl",
] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.96"
Expand All @@ -78,6 +78,8 @@ tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
urlencoding = "2.1.2"
uuid = { version = "1", features = ["v4", "fast-rng", "serde"] }
walkdir = "2"
x509-certificate = "0.23.1"
x509-parser = "0.16.0"

rayon = { version = "1.8.0", optional = true }
pcap = { version = "1.0.0", optional = true }
Expand All @@ -87,8 +89,8 @@ pnet_macros = { version = "0.33.0", optional = true }
pnet_macros_support = { version = "0.33.0", optional = true }

libssh-rs = { version = "~0.2", features = [
"vendored-openssl",
"vendored",
"vendored-openssl",
"vendored",
], optional = true }

nasl-function-proc-macro = { path = "crates/nasl-function-proc-macro" }
Expand All @@ -111,18 +113,18 @@ dep-graph-parallel = ["rayon", "crossbeam-channel"]
openvas_serde_support = []
serde_support = []
default = [
"dep-graph-parallel",
"openvas_serde_support",
"enforce-no-trailing-arguments",
"serde_support",
"dep-graph-parallel",
"openvas_serde_support",
"enforce-no-trailing-arguments",
"serde_support",
]

nasl-builtin-raw-ip = [
"pcap",
"pnet_base",
"pnet",
"pnet_macros",
"pnet_macros_support",
"pcap",
"pnet_base",
"pnet",
"pnet_macros",
"pnet_macros_support",
]
nasl-builtin-libssh = ["libssh-rs"]
experimental = ["nasl-builtin-raw-ip", "nasl-builtin-libssh", "nasl-c-lib"]
Expand Down
Loading

0 comments on commit c38c5bf

Please sign in to comment.