Skip to content

Commit f4dc8e9

Browse files
committed
fix: use CK_ULONG for vendor mechs
Signed-off-by: Direktor799 <[email protected]>
1 parent f529c96 commit f4dc8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cryptoki/src/mechanism/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl MechanismType {
316316
/// pub const CKM_SOME_CUSTOM_MECH: MechanismType =
317317
/// MechanismType::new_vendor_defined(0x00000001);
318318
/// ```
319-
pub const fn new_vendor_defined(adding: u64) -> MechanismType {
319+
pub const fn new_vendor_defined(adding: CK_ULONG) -> MechanismType {
320320
MechanismType {
321321
val: CKM_VENDOR_DEFINED | adding,
322322
}

0 commit comments

Comments
 (0)