mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-10-28 17:22:28 +00:00
Error C2664: unable to convert the argument 1 from 'const EVP_PKEY *' to 'EVP_PKEY *'
Signed-off-by: Francis ANDRE <francis.andre.kampbell@orange.fr>
This commit is contained in:
committed by
Alex Fabijanic
parent
b2a0483805
commit
7c0ff76e1b
@@ -84,7 +84,7 @@ namespace
|
||||
if (EVP_PKEY_encrypt_init(_pCtx) <= 0)
|
||||
throwError(Poco::format(fmt, std::string("EVP_PKEY_encrypt_init")));
|
||||
|
||||
_blockSize = EVP_PKEY_size(_pEVP);
|
||||
_blockSize = EVP_PKEY_size(const_cast<EVP_PKEY*>(_pEVP));
|
||||
if (!_blockSize)
|
||||
throwError(Poco::format(fmt, std::string("EVP_PKEY_size")));
|
||||
_pBuf = new unsigned char[_blockSize];
|
||||
@@ -197,7 +197,7 @@ namespace
|
||||
if (EVP_PKEY_decrypt_init(_pCtx) <= 0)
|
||||
throwError(Poco::format(fmt, std::string("EVP_PKEY_decrypt_init")));
|
||||
|
||||
_blockSize = EVP_PKEY_size(_pEVP);
|
||||
_blockSize = EVP_PKEY_size(const_cast<EVP_PKEY*>(_pEVP));
|
||||
if (!_blockSize)
|
||||
throwError(Poco::format(fmt, std::string("EVP_PKEY_size")));
|
||||
_pBuf = new unsigned char[_blockSize];
|
||||
|
||||
Reference in New Issue
Block a user