diff options
author | Daniel Neus <[email protected]> | 2019-05-28 21:37:33 +0200 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2019-05-28 21:37:33 +0200 |
commit | 2f6c3af85117f4f48eac56e30d6f5088171abf08 (patch) | |
tree | f4bbdb88732d4f5e5bc8e8d1f81c2ab3f50ad4c3 /src/lib/prov | |
parent | e6775cf25394e2c3333facd060d3951ee30389b5 (diff) |
SoftHSM 2.5.0 compatibility
Fixes "src\lib\softhsm.cpp(10191): CKA_VALUE_LEN does not have the size of CK_ULONG"
Diffstat (limited to 'src/lib/prov')
-rw-r--r-- | src/lib/prov/pkcs11/p11_ecdh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/prov/pkcs11/p11_ecdh.cpp b/src/lib/prov/pkcs11/p11_ecdh.cpp index 0cd671bcb..f6e27e513 100644 --- a/src/lib/prov/pkcs11/p11_ecdh.cpp +++ b/src/lib/prov/pkcs11/p11_ecdh.cpp @@ -74,7 +74,7 @@ class PKCS11_ECDH_KA_Operation final : public PK_Ops::Key_Agreement attributes.add_bool(AttributeType::Extractable, true); attributes.add_numeric(AttributeType::Class, static_cast< CK_OBJECT_CLASS >(ObjectClass::SecretKey)); attributes.add_numeric(AttributeType::KeyType, static_cast< CK_KEY_TYPE >(KeyType::GenericSecret)); - attributes.add_numeric(AttributeType::ValueLen, key_len); + attributes.add_numeric(AttributeType::ValueLen, static_cast< CK_ULONG >(key_len)); m_key.module()->C_DeriveKey(m_key.session().handle(), m_mechanism.data(), m_key.handle(), attributes.data(), attributes.count(), &secret_handle); |