diff options
author | Henauxg <19689618+Henauxg@users.noreply.github.com> | 2022-11-16 22:01:05 +0100 |
---|---|---|
committer | Henauxg <19689618+Henauxg@users.noreply.github.com> | 2022-11-16 22:01:05 +0100 |
commit | a8bacbd385cf1db83b7bc56d2716b528740875cd (patch) | |
tree | 7e35cae0fdaca91f43e11ad1879d45617a0bb9d9 /docs | |
parent | 6dfba80013e6c1a8a063f8542babda8e390389ed (diff) |
[client] Update code snippets
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Certificates.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/Certificates.md b/docs/Certificates.md index 8c61082..c050754 100644 --- a/docs/Certificates.md +++ b/docs/Certificates.md @@ -6,7 +6,7 @@ Use the default configuration like this: ```rust -client.connect(/*...*/, CertificateVerificationMode::TrustOnFirstUse(TrustOnFirstUseConfig { +client.open_connection(/*...*/, CertificateVerificationMode::TrustOnFirstUse(TrustOnFirstUseConfig { ..Default::default() }), ); @@ -23,7 +23,7 @@ The defaults verifier behaviours are: Default verifier behaviours with a custom store file: ```rust -client.connect(/*...*/, CertificateVerificationMode::TrustOnFirstUse(TrustOnFirstUseConfig { +client.open_connection(/*...*/, CertificateVerificationMode::TrustOnFirstUse(TrustOnFirstUseConfig { known_hosts: KnownHosts::HostsFile("MyCustomFile".to_string()), ..Default::default() }), @@ -32,7 +32,7 @@ client.connect(/*...*/, CertificateVerificationMode::TrustOnFirstUse(TrustOnFirs Custom verifier behaviours with a custom store: ```rust -client.connect(/*...*/, CertificateVerificationMode::TrustOnFirstUse(TrustOnFirstUseConfig { +client.open_connection(/*...*/, CertificateVerificationMode::TrustOnFirstUse(TrustOnFirstUseConfig { known_hosts: KnownHosts::Store(my_cert_store), verifier_behaviour: HashMap::from([ ( |