index 61ef8715ab31c2d4cfe58403b4ef47f88f1689e6..4943a1d1ad5f7e874cdde10f2887c5c469ac747f 100644 (file)
--- a/src/lib/P11Attributes.h
+++ b/src/lib/P11Attributes.h
{
public:
// Destructor
- ~P11Attribute();
+ virtual ~P11Attribute();
// Initialize the attribute
bool init();
{
public:
// Constructor
- P11AttrModulus(OSObject* osobject) : P11Attribute(osobject) { type = CKA_MODULUS; checks = ck1|ck4|ck6; }
+ P11AttrModulus(OSObject* osobject) : P11Attribute(osobject) { type = CKA_MODULUS; checks = ck3; }
protected:
// Set the default value of the attribute
virtual CK_RV updateAttr(Token *token, bool isPrivate, CK_VOID_PTR pValue, CK_ULONG ulValueLen, int op);
};
+/*****************************************
+ * CKA_WRAPPED_PRIVATE_KEY
+ *****************************************/
+
+class P11AttrWrappedPrivateKey : public P11Attribute
+{
+public:
+ // Constructor
+ P11AttrWrappedPrivateKey(OSObject* osobject) : P11Attribute(osobject) { type = CKA_WRAPPED_PRIVATE_KEY; checks = 0; }
+
+protected:
+ // Set the default value of the attribute
+ virtual bool setDefault();
+
+ // Update the value if allowed
+ virtual CK_RV updateAttr(Token *token, bool isPrivate, CK_VOID_PTR pValue, CK_ULONG ulValueLen, int op);
+};
+
+
#endif // !_SOFTHSM_V2_P11ATTRIBUTES_H