Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cryptoki/src/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ pub enum UserType {
User,
/// Context Specific
ContextSpecific,
/// Vendor extension
VendorExtension(u32)
}

impl From<UserType> for CK_USER_TYPE {
Expand All @@ -98,6 +100,7 @@ impl From<UserType> for CK_USER_TYPE {
UserType::So => CKU_SO,
UserType::User => CKU_USER,
UserType::ContextSpecific => CKU_CONTEXT_SPECIFIC,
UserType::VendorExtension(n) => n as CK_USER_TYPE
}
}
}
Loading