mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-31 00:04:36 +02:00
fix for OpenSSL 1.0
This commit is contained in:
parent
943595c937
commit
e7d2b4593a
@ -50,7 +50,7 @@ public:
|
||||
/// no padding is performed, the total amount of data encrypted or decrypted must then be a multiple of
|
||||
/// the block size or an error will occur.
|
||||
|
||||
virtual std::string getTag(std::size_t tagSize = 16) const = 0;
|
||||
virtual std::string getTag(std::size_t tagSize = 16) = 0;
|
||||
/// Returns the GCM tag after encrypting using GCM mode.
|
||||
///
|
||||
/// Must be called after finalize().
|
||||
|
@ -62,7 +62,7 @@ namespace
|
||||
|
||||
std::size_t blockSize() const;
|
||||
int setPadding(int padding);
|
||||
std::string getTag(std::size_t tagSize) const;
|
||||
std::string getTag(std::size_t tagSize);
|
||||
void setTag(const std::string& tag);
|
||||
|
||||
std::streamsize transform(
|
||||
@ -158,7 +158,7 @@ namespace
|
||||
}
|
||||
|
||||
|
||||
std::string CryptoTransformImpl::getTag(std::size_t tagSize) const
|
||||
std::string CryptoTransformImpl::getTag(std::size_t tagSize)
|
||||
{
|
||||
std::string tag;
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||||
|
@ -69,7 +69,7 @@ namespace
|
||||
|
||||
std::size_t blockSize() const;
|
||||
std::size_t maxDataSize() const;
|
||||
std::string getTag(std::size_t) const;
|
||||
std::string getTag(std::size_t);
|
||||
void setTag(const std::string&);
|
||||
|
||||
std::streamsize transform(
|
||||
@ -129,7 +129,7 @@ namespace
|
||||
}
|
||||
|
||||
|
||||
std::string RSAEncryptImpl::getTag(std::size_t) const
|
||||
std::string RSAEncryptImpl::getTag(std::size_t)
|
||||
{
|
||||
return std::string();
|
||||
}
|
||||
@ -205,7 +205,7 @@ namespace
|
||||
~RSADecryptImpl();
|
||||
|
||||
std::size_t blockSize() const;
|
||||
std::string getTag(std::size_t) const;
|
||||
std::string getTag(std::size_t);
|
||||
void setTag(const std::string&);
|
||||
|
||||
std::streamsize transform(
|
||||
@ -248,7 +248,7 @@ namespace
|
||||
}
|
||||
|
||||
|
||||
std::string RSADecryptImpl::getTag(std::size_t) const
|
||||
std::string RSADecryptImpl::getTag(std::size_t)
|
||||
{
|
||||
return std::string();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user