mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-20 22:31:23 +01:00
chore(Crypto): fix some warnings
This commit is contained in:
parent
c023404a03
commit
9b8fe57cb9
@ -130,7 +130,7 @@ namespace
|
||||
throwError(Poco::format(fmt, std::string("EVP_PKEY_encrypt(NULL)")));
|
||||
if (EVP_PKEY_encrypt(_pCtx, output, &outLen, _pBuf, static_cast<std::size_t>(maxSize)) <= 0)
|
||||
throwError(Poco::format(fmt, std::string("EVP_PKEY_encrypt")));
|
||||
rc += outLen;
|
||||
rc += static_cast<int>(outLen);
|
||||
output += outLen;
|
||||
outputLength -= outLen;
|
||||
_pos = 0;
|
||||
@ -241,7 +241,7 @@ namespace
|
||||
throwError(Poco::format(fmt, std::string("EVP_PKEY_decrypt(NULL)")));
|
||||
if (EVP_PKEY_decrypt(_pCtx, output, &outLen, _pBuf, static_cast<std::size_t>(_pos)) <= 0)
|
||||
throwError(Poco::format(fmt, std::string("EVP_PKEY_decrypt")));
|
||||
rc += outLen;
|
||||
rc += static_cast<int>(outLen);
|
||||
output += outLen;
|
||||
outputLength -= outLen;
|
||||
_pos = 0;
|
||||
|
@ -15,7 +15,9 @@
|
||||
#include "Poco/Crypto/Envelope.h"
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
#define EVP_CIPHER_CTX_init(a) 1
|
||||
#if !defined(EVP_CIPHER_CTX_init)
|
||||
#define EVP_CIPHER_CTX_init(a)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace Poco {
|
||||
|
Loading…
x
Reference in New Issue
Block a user