kmip_protocol/client/
config.rs1use std::time::Duration;
2
3#[derive(Clone, Debug)]
5pub enum ClientCertificate {
6 SeparatePem {
7 cert_bytes: Vec<u8>,
8 key_bytes: Option<Vec<u8>>,
9 },
10 CombinedPkcs12 {
11 cert_bytes: Vec<u8>,
12 },
13}
14
15#[derive(Clone, Default, Debug)]
17pub struct ConnectionSettings {
18 pub host: String,
20
21 pub port: u16,
23
24 pub username: Option<String>,
26
27 pub password: Option<String>,
29
30 pub insecure: bool,
32
33 pub client_cert: Option<ClientCertificate>,
35
36 pub server_cert: Option<Vec<u8>>,
38
39 pub ca_cert: Option<Vec<u8>>,
41
42 pub connect_timeout: Option<Duration>,
44
45 pub read_timeout: Option<Duration>,
47
48 pub write_timeout: Option<Duration>,
50
51 pub max_response_bytes: Option<u32>,
53}