sidevm_env/tls.rs
1use scale::{Decode, Encode};
2
3/// TLS server configuration.
4#[derive(Encode, Decode, Clone)]
5pub enum TlsServerConfig {
6 V0 {
7 /// Certificate in PEM format.
8 cert: String,
9 /// The private key of the certificate, in PEM format.
10 key: String,
11 },
12}
13
14/// TLS client configuration.
15#[derive(Encode, Decode, Clone)]
16pub enum TlsClientConfig {
17 /// Nothing to be configured in this version.
18 V0,
19}