Compare commits
No commits in common. "666196c103403289a6f2af9abd5f1d4d49c93887" and "42a43f175e792b3cab71595a23ef586f459dce07" have entirely different histories.
666196c103
...
42a43f175e
4 changed files with 6 additions and 8 deletions
|
@ -35,8 +35,7 @@ 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 = ["file"]
|
file-sscv = ["dep:dashmap", "tokio/fs"]
|
||||||
file = ["dep:dashmap", "tokio/fs"]
|
|
||||||
|
|
||||||
dane = ["hickory"]
|
dane = ["hickory"]
|
||||||
hickory = ["dep:hickory-client"]
|
hickory = ["dep:hickory-client"]
|
||||||
|
@ -52,4 +51,4 @@ path = "examples/simple.rs"
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "main"
|
name = "main"
|
||||||
path = "examples/main.rs"
|
path = "examples/main.rs"
|
||||||
required-features = ["file", "dane"]
|
required-features = ["file-sscv", "dane"]
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
pub mod sscv;
|
|
|
@ -13,8 +13,8 @@ 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
|
||||||
/// ```
|
/// ```
|
||||||
pub async fn parse_file(path: impl AsRef<Path>) -> std::io::Result<KnownHostsFile> {
|
pub async fn parse_file(path: impl AsRef<Path>) -> std::io::Result<KnownHostsFile> {
|
|
@ -3,8 +3,8 @@
|
||||||
pub mod fingerprint;
|
pub mod fingerprint;
|
||||||
pub mod verifier;
|
pub mod verifier;
|
||||||
|
|
||||||
#[cfg(feature = "file")]
|
#[cfg(feature = "file-sscv")]
|
||||||
pub mod file;
|
pub mod file_sscv;
|
||||||
|
|
||||||
#[cfg(feature = "hickory")]
|
#[cfg(feature = "hickory")]
|
||||||
pub mod dane;
|
pub mod dane;
|
||||||
|
|
Loading…
Add table
Reference in a new issue