torrust-actix 4.2.3

A rich, fast and efficient Bittorrent Tracker.
1
2
3
4
5
6
7
8
9
10
use crate::ssl::enums::server_identifier::ServerIdentifier;
use crate::ssl::structs::certificate_paths::CertificatePaths;
use parking_lot::RwLock;
use std::collections::HashMap;
use std::sync::Arc;

pub struct CertificateStore {
    pub(crate) bundles: RwLock<HashMap<ServerIdentifier, Arc<crate::ssl::structs::certificate_bundle::CertificateBundle>>>,
    pub(crate) paths: RwLock<HashMap<ServerIdentifier, CertificatePaths>>,
}