Skip to content

Commit

Permalink
certs/snp: Only use {As, From}Le with openssl flag
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Fanelli <[email protected]>
  • Loading branch information
tylerfanelli committed Jul 10, 2024
1 parent 50f2362 commit fa4a5a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/certs/snp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ pub trait Signer<T> {
fn sign(&self, target: &mut T) -> Result<Self::Output>;
}

#[cfg(any(feature = "openssl", feature = "crypto_nossl"))]
#[cfg(feature = "openssl")]
pub(crate) trait FromLe: Sized {
fn from_le(value: &[u8]) -> Result<Self>;
}

#[cfg(any(feature = "openssl", feature = "crypto_nossl"))]
#[cfg(feature = "openssl")]
pub(crate) trait AsLeBytes<T> {
fn as_le_bytes(&self) -> T;
}
Expand Down

0 comments on commit fa4a5a0

Please sign in to comment.