ockam_entity 0.8.0

Ockam is a library for building devices that communicate securely, privately and trustfully with cloud services and other devices.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{SecureChannelTrustInfo, TrustPolicy};
use ockam_core::{allow, Result};

#[derive(Clone)]
pub struct NoOpTrustPolicy;

impl TrustPolicy for NoOpTrustPolicy {
    fn check(&self, _trust_info: &SecureChannelTrustInfo) -> Result<bool> {
        allow()
    }
}