sct 0.7.1

Certificate transparency SCT verification library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::Error;

#[test]
fn test_unknown_log_is_not_fatal() {
    assert!(!Error::UnknownLog.should_be_fatal());
}

#[test]
fn test_unknown_sct_version_is_not_fatal() {
    assert!(!Error::UnsupportedSctVersion.should_be_fatal());
}

#[test]
fn test_other_errors_are_fatal() {
    assert!(Error::MalformedSct.should_be_fatal());
    assert!(Error::InvalidSignature.should_be_fatal());
    assert!(Error::TimestampInFuture.should_be_fatal());
}