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 Aug 20, 2024
1 parent 159eb75 commit 9acb47b
Show file tree
Hide file tree
Showing 7 changed files with 416 additions and 14 deletions.
91 changes: 91 additions & 0 deletions rust/Cargo.lock

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

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

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

[dependencies]
nasl-builtin-utils = { path = "../nasl-builtin-utils" }
nasl-builtin-string = { path = "../nasl-builtin-string" }
nasl-function-proc-macro = { path = "../nasl-function-proc-macro" }
nasl-syntax = { path = "../nasl-syntax" }
storage = { path = "../storage" }

x509-certificate = "0"
time = { version = "0", features = ["parsing"] }
sha1 = "0"
sha2 = "0"

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

## Missing
Loading

0 comments on commit 9acb47b

Please sign in to comment.