Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Mar 25, 2024
1 parent 9f1246c commit df31e9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neqo-crypto/src/aead_fuzzing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ pub struct FuzzingAead {

impl FuzzingAead {
#[cfg(feature = "disable-encryption")]
#[allow(clippy::missing_errors_doc)]
pub fn new(_version: Version, _cipher: Cipher, _secret: &SymKey, _prefix: &str) -> Res<Self> {
Ok(Self { real: None })
}

#[cfg(not(feature = "disable-encryption"))]
#[allow(clippy::missing_errors_doc)]
pub fn new(version: Version, cipher: Cipher, secret: &SymKey, prefix: &str) -> Res<Self> {
Ok(Self {
real: Some(RealAead::new(version, cipher, secret, prefix)?),
Expand Down

0 comments on commit df31e9b

Please sign in to comment.