fix for OpenSSL 1.0

This commit is contained in:
Günter Obiltschnig 2018-03-06 22:58:14 +01:00
parent 943595c937
commit e7d2b4593a
3 changed files with 26 additions and 26 deletions

View File

@ -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().

View File

@ -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

View File

@ -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();
}