Skip to content

Commit 2a23134

Browse files
committed
Add: NASL bultin functions for certificate handling
Added functions: cert_open, cert_query, cert_close
1 parent 104f317 commit 2a23134

File tree

5 files changed

+631
-25
lines changed

5 files changed

+631
-25
lines changed

rust/Cargo.lock

Lines changed: 155 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ rustls-pemfile = "2.1.2"
6060
rustls-pemfile-old = { version = "1.0.2", package = "rustls-pemfile" }
6161
sequoia-ipc = "0.30.1"
6262
sequoia-openpgp = { version = "1.16.1", default-features = false, features = [
63-
"crypto-openssl",
63+
"crypto-openssl",
6464
] }
6565
serde = { version = "1.0", features = ["derive"] }
6666
serde_json = "1.0.96"
@@ -78,6 +78,8 @@ tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
7878
urlencoding = "2.1.2"
7979
uuid = { version = "1", features = ["v4", "fast-rng", "serde"] }
8080
walkdir = "2"
81+
x509-certificate = "0.23.1"
82+
x509-parser = "0.16.0"
8183

8284
rayon = { version = "1.8.0", optional = true }
8385
pcap = { version = "1.0.0", optional = true }
@@ -87,8 +89,8 @@ pnet_macros = { version = "0.33.0", optional = true }
8789
pnet_macros_support = { version = "0.33.0", optional = true }
8890

8991
libssh-rs = { version = "~0.2", features = [
90-
"vendored-openssl",
91-
"vendored",
92+
"vendored-openssl",
93+
"vendored",
9294
], optional = true }
9395

9496
nasl-function-proc-macro = { path = "crates/nasl-function-proc-macro" }
@@ -111,18 +113,18 @@ dep-graph-parallel = ["rayon", "crossbeam-channel"]
111113
openvas_serde_support = []
112114
serde_support = []
113115
default = [
114-
"dep-graph-parallel",
115-
"openvas_serde_support",
116-
"enforce-no-trailing-arguments",
117-
"serde_support",
116+
"dep-graph-parallel",
117+
"openvas_serde_support",
118+
"enforce-no-trailing-arguments",
119+
"serde_support",
118120
]
119121

120122
nasl-builtin-raw-ip = [
121-
"pcap",
122-
"pnet_base",
123-
"pnet",
124-
"pnet_macros",
125-
"pnet_macros_support",
123+
"pcap",
124+
"pnet_base",
125+
"pnet",
126+
"pnet_macros",
127+
"pnet_macros_support",
126128
]
127129
nasl-builtin-libssh = ["libssh-rs"]
128130
experimental = ["nasl-builtin-raw-ip", "nasl-builtin-libssh", "nasl-c-lib"]

0 commit comments

Comments
 (0)