diff --git a/.gitignore b/.gitignore index 5f9ff5d6..c03e55e7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target -.vscode/ \ No newline at end of file +.vscode/ +.zed/ diff --git a/src/certs/snp/cert_nossl.rs b/src/certs/snp/cert_nossl.rs index 88aeb1a4..2be63b31 100644 --- a/src/certs/snp/cert_nossl.rs +++ b/src/certs/snp/cert_nossl.rs @@ -106,3 +106,15 @@ impl Certificate { fn io_error_other>(error: S) -> io::Error { io::Error::new(ErrorKind::Other, error.into()) } + +impl From for Certificate { + fn from(value: x509_cert::Certificate) -> Self { + Self(value) + } +} + +impl From for x509_cert::Certificate { + fn from(Certificate(cert): Certificate) -> Self { + cert + } +}