Skip to content

Commit

Permalink
tests: gate new constants behind alloc feature
Browse files Browse the repository at this point in the history
  • Loading branch information
sietseringers committed Jul 13, 2023
1 parent 78ab8d9 commit 89923d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/custom_ekus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ fn check_cert(
);
}

#[cfg(feature = "alloc")]
#[allow(clippy::identity_op)]
static EKU_CLIENT_AUTH: webpki::KeyPurposeId =
webpki::KeyPurposeId::new(&[(40 * 1) + 3, 6, 1, 5, 5, 7, 3, 2]);

#[cfg(feature = "alloc")]
#[allow(clippy::identity_op)]
static EKU_SERVER_AUTH: webpki::KeyPurposeId =
webpki::KeyPurposeId::new(&[(40 * 1) + 3, 6, 1, 5, 5, 7, 3, 1]);
Expand Down

0 comments on commit 89923d4

Please sign in to comment.