Fix deprecated warning with message under GCC 4.47
parent
9154975b1a
commit
49b18188b4
32
default.h
32
default.h
|
|
@ -48,13 +48,7 @@ private:
|
||||||
SecByteBlock m_passphrase;
|
SecByteBlock m_passphrase;
|
||||||
CBC_Mode<DefaultBlockCipher>::Encryption m_cipher;
|
CBC_Mode<DefaultBlockCipher>::Encryption m_cipher;
|
||||||
|
|
||||||
#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20800)
|
} CRYPTOPP_DEPRECATED ("DefaultEncryptor will be changing in the near future because the algorithms are no longer secure");
|
||||||
} __attribute__((deprecated ("DefaultEncryptor will be changing in the near future because the algorithms are no longer secure")));
|
|
||||||
#elif (CRYPTOPP_GCC_VERSION)
|
|
||||||
} __attribute__((deprecated));
|
|
||||||
#else
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//! \class DefaultDecryptor
|
//! \class DefaultDecryptor
|
||||||
//! \brief Password-Based Decryptor using TripleDES
|
//! \brief Password-Based Decryptor using TripleDES
|
||||||
|
|
@ -101,13 +95,7 @@ private:
|
||||||
member_ptr<FilterWithBufferedInput> m_decryptor;
|
member_ptr<FilterWithBufferedInput> m_decryptor;
|
||||||
bool m_throwException;
|
bool m_throwException;
|
||||||
|
|
||||||
#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20800)
|
} CRYPTOPP_DEPRECATED ("DefaultDecryptor will be changing in the near future because the algorithms are no longer secure");
|
||||||
} __attribute__((deprecated ("DefaultDecryptor will be changing in the near future because the algorithms are no longer secure")));
|
|
||||||
#elif (CRYPTOPP_GCC_VERSION)
|
|
||||||
} __attribute__((deprecated));
|
|
||||||
#else
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//! \class DefaultEncryptorWithMAC
|
//! \class DefaultEncryptorWithMAC
|
||||||
//! \brief Password-Based encryptor using TripleDES and HMAC/SHA-1
|
//! \brief Password-Based encryptor using TripleDES and HMAC/SHA-1
|
||||||
|
|
@ -139,13 +127,7 @@ protected:
|
||||||
private:
|
private:
|
||||||
member_ptr<DefaultMAC> m_mac;
|
member_ptr<DefaultMAC> m_mac;
|
||||||
|
|
||||||
#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20800)
|
} CRYPTOPP_DEPRECATED ("DefaultEncryptorWithMAC will be changing in the near future because the algorithms are no longer secure");
|
||||||
} __attribute__((deprecated ("DefaultEncryptorWithMAC will be changing in the near future because the algorithms are no longer secure")));
|
|
||||||
#elif (CRYPTOPP_GCC_VERSION)
|
|
||||||
} __attribute__((deprecated));
|
|
||||||
#else
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//! \class DefaultDecryptorWithMAC
|
//! \class DefaultDecryptorWithMAC
|
||||||
//! \brief Password-Based decryptor using TripleDES and HMAC/SHA-1
|
//! \brief Password-Based decryptor using TripleDES and HMAC/SHA-1
|
||||||
|
|
@ -188,13 +170,7 @@ private:
|
||||||
HashVerifier *m_hashVerifier;
|
HashVerifier *m_hashVerifier;
|
||||||
bool m_throwException;
|
bool m_throwException;
|
||||||
|
|
||||||
#if (CRYPTOPP_GCC_VERSION >= 40500) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20800)
|
} CRYPTOPP_DEPRECATED ("DefaultDecryptorWithMAC will be changing in the near future because the algorithms are no longer secure");
|
||||||
} __attribute__((deprecated ("DefaultDecryptorWithMAC will be changing in the near future because the algorithms are no longer secure")));
|
|
||||||
#elif (CRYPTOPP_GCC_VERSION)
|
|
||||||
} __attribute__((deprecated));
|
|
||||||
#else
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
NAMESPACE_END
|
NAMESPACE_END
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue