1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use scale::{Decode, Encode};

/// TLS server configuration.
#[derive(Encode, Decode, Clone)]
pub enum TlsServerConfig {
    V0 {
        /// Certificate in PEM format.
        cert: String,
        /// The private key of the certificate, in PEM format.
        key: String,
    },
}

/// TLS client configuration.
#[derive(Encode, Decode, Clone)]
pub enum TlsClientConfig {
    /// Nothing to be configured in this version.
    V0,
}