diff options
author | Jack Lloyd <[email protected]> | 2018-10-01 05:28:59 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-10-01 05:28:59 -0400 |
commit | b96189789154222a8de57e31deb457be4208b4b3 (patch) | |
tree | 3e507015919fe4c73ccdabd3903fdcf178d5fd1b /src/lib/prov/pkcs11/p11_mechanism.h | |
parent | 388530b25b3de0e33f85612d91721dc190b3347d (diff) |
Fix more MSVC warnings
Diffstat (limited to 'src/lib/prov/pkcs11/p11_mechanism.h')
-rw-r--r-- | src/lib/prov/pkcs11/p11_mechanism.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/prov/pkcs11/p11_mechanism.h b/src/lib/prov/pkcs11/p11_mechanism.h index 80f2f8ec9..035d1e69a 100644 --- a/src/lib/prov/pkcs11/p11_mechanism.h +++ b/src/lib/prov/pkcs11/p11_mechanism.h @@ -66,7 +66,7 @@ class MechanismWrapper final inline void set_ecdh_salt(const uint8_t salt[], size_t salt_len) { m_parameters->ecdh_params.pSharedData = const_cast<uint8_t*>(salt); - m_parameters->ecdh_params.ulSharedDataLen = salt_len; + m_parameters->ecdh_params.ulSharedDataLen = static_cast<Ulong>(salt_len); } /** @@ -77,7 +77,7 @@ class MechanismWrapper final inline void set_ecdh_other_key(const uint8_t other_key[], size_t other_key_len) { m_parameters->ecdh_params.pPublicData = const_cast<uint8_t*>(other_key); - m_parameters->ecdh_params.ulPublicDataLen = other_key_len; + m_parameters->ecdh_params.ulPublicDataLen = static_cast<Ulong>(other_key_len); } /// @return a pointer to the CK_MECHANISM struct that can be passed to the cryptoki functions |