Compare commits
2 commits
42a43f175e
...
666196c103
Author | SHA1 | Date | |
---|---|---|---|
666196c103 | |||
719083bad2 |
4 changed files with 8 additions and 6 deletions
|
@ -35,7 +35,8 @@ hickory-client = { version = "0.24.1", optional = true }
|
||||||
tokio = { version = "1.39.2", features = ["macros", "rt-multi-thread"] }
|
tokio = { version = "1.39.2", features = ["macros", "rt-multi-thread"] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
file-sscv = ["dep:dashmap", "tokio/fs"]
|
file-sscv = ["file"]
|
||||||
|
file = ["dep:dashmap", "tokio/fs"]
|
||||||
|
|
||||||
dane = ["hickory"]
|
dane = ["hickory"]
|
||||||
hickory = ["dep:hickory-client"]
|
hickory = ["dep:hickory-client"]
|
||||||
|
@ -51,4 +52,4 @@ path = "examples/simple.rs"
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "main"
|
name = "main"
|
||||||
path = "examples/main.rs"
|
path = "examples/main.rs"
|
||||||
required-features = ["file-sscv", "dane"]
|
required-features = ["file", "dane"]
|
||||||
|
|
1
src/certs/file/mod.rs
Normal file
1
src/certs/file/mod.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pub mod sscv;
|
|
@ -13,7 +13,7 @@ pub struct KnownHostsFile {
|
||||||
impl KnownHostsFile {
|
impl KnownHostsFile {
|
||||||
/// Read or create a known_hosts file at the given path.
|
/// Read or create a known_hosts file at the given path.
|
||||||
/// Format of known_hosts is: _(fields are separated by any space sequence)_
|
/// Format of known_hosts is: _(fields are separated by any space sequence)_
|
||||||
/// ```
|
/// ```text
|
||||||
/// # host expires algo base64 fingerprint
|
/// # host expires algo base64 fingerprint
|
||||||
/// dc09.ru 1722930541 sha512 dGVzdHRlc3R0ZXN0Cg
|
/// dc09.ru 1722930541 sha512 dGVzdHRlc3R0ZXN0Cg
|
||||||
/// ```
|
/// ```
|
|
@ -3,8 +3,8 @@
|
||||||
pub mod fingerprint;
|
pub mod fingerprint;
|
||||||
pub mod verifier;
|
pub mod verifier;
|
||||||
|
|
||||||
#[cfg(feature = "file-sscv")]
|
#[cfg(feature = "file")]
|
||||||
pub mod file_sscv;
|
pub mod file;
|
||||||
|
|
||||||
#[cfg(feature = "hickory")]
|
#[cfg(feature = "hickory")]
|
||||||
pub mod dane;
|
pub mod dane;
|
||||||
|
|
Loading…
Add table
Reference in a new issue