pub struct OvpnConfig {Show 13 fields
pub remote: SocketAddr,
pub protocol: String,
pub cipher: String,
pub data_ciphers: Vec<String>,
pub auth: String,
pub verb: u8,
pub ca_pem: String,
pub cert_pem: String,
pub key_pem: String,
pub tls_auth_key: Option<Vec<u8>>,
pub key_direction: Option<u8>,
pub remote_cert_tls: bool,
pub dev: String,
}Expand description
Parsed OpenVPN client configuration
Fields§
§remote: SocketAddrRemote server address and port
protocol: StringProtocol (udp or tcp)
cipher: StringCipher name (e.g., CHACHA20-POLY1305)
data_ciphers: Vec<String>Data ciphers for NCP negotiation
auth: StringAuth digest (e.g., SHA256)
verb: u8Verbosity level
ca_pem: StringCA certificate (PEM)
cert_pem: StringClient certificate (PEM)
key_pem: StringClient private key (PEM)
tls_auth_key: Option<Vec<u8>>TLS-auth static key (hex-encoded lines)
key_direction: Option<u8>Key direction for tls-auth (0 or 1)
remote_cert_tls: boolWhether remote-cert-tls server is enabled
dev: StringDevice type (tun or tap)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OvpnConfig
impl RefUnwindSafe for OvpnConfig
impl Send for OvpnConfig
impl Sync for OvpnConfig
impl Unpin for OvpnConfig
impl UnsafeUnpin for OvpnConfig
impl UnwindSafe for OvpnConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more