Skip to content

Commit

Permalink
Avoid some unused functions in some configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Dec 9, 2024
1 parent c63c9a0 commit 7c6b9c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ossl/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,7 @@ const NAME_ED448: &[u8] = b"ED448\0";
const NAME_X25519: &[u8] = b"X25519\0";
const NAME_X448: &[u8] = b"X448\0";

#[cfg(feature = "ecc")]
fn oid_to_ossl_name(oid: &asn1::ObjectIdentifier) -> Result<&'static [u8]> {
match oid {
&oid::EC_SECP256R1 => Ok(NAME_SECP256R1),
Expand Down

0 comments on commit 7c6b9c4

Please sign in to comment.