@@ -1278,6 +1278,10 @@ impl ObjectClass {
12781278 pub const MECHANISM : ObjectClass = ObjectClass { val : CKO_MECHANISM } ;
12791279 /// An OTP key object
12801280 pub const OTP_KEY : ObjectClass = ObjectClass { val : CKO_OTP_KEY } ;
1281+ /// Profile object
1282+ pub const PROFILE : ObjectClass = ObjectClass { val : CKO_PROFILE } ;
1283+ /// Validation object
1284+ pub const VALIDATION : ObjectClass = ObjectClass { val : CKO_VALIDATION } ;
12811285
12821286 pub ( crate ) fn stringify ( class : CK_OBJECT_CLASS ) -> String {
12831287 match class {
@@ -1290,6 +1294,8 @@ impl ObjectClass {
12901294 CKO_DOMAIN_PARAMETERS => String :: from ( stringify ! ( CKO_DOMAIN_PARAMETERS ) ) ,
12911295 CKO_MECHANISM => String :: from ( stringify ! ( CKO_MECHANISM ) ) ,
12921296 CKO_OTP_KEY => String :: from ( stringify ! ( CKO_OTP_KEY ) ) ,
1297+ CKO_PROFILE => String :: from ( stringify ! ( CKO_PROFILE ) ) ,
1298+ CKO_VALIDATION => String :: from ( stringify ! ( CKO_VALIDATION ) ) ,
12931299 _ => format ! ( "unknown ({class:08x})" ) ,
12941300 }
12951301 }
@@ -1329,6 +1335,8 @@ impl TryFrom<CK_OBJECT_CLASS> for ObjectClass {
13291335 CKO_DOMAIN_PARAMETERS => Ok ( ObjectClass :: DOMAIN_PARAMETERS ) ,
13301336 CKO_MECHANISM => Ok ( ObjectClass :: MECHANISM ) ,
13311337 CKO_OTP_KEY => Ok ( ObjectClass :: OTP_KEY ) ,
1338+ CKO_PROFILE => Ok ( ObjectClass :: PROFILE ) ,
1339+ CKO_VALIDATION => Ok ( ObjectClass :: VALIDATION ) ,
13321340
13331341 _ => {
13341342 error ! ( "Object class {} is not supported." , object_class) ;
0 commit comments