Permalink
Browse files

Use a different check to detect old Nettle versions

  • Loading branch information...
mbasaglia committed Nov 8, 2015
1 parent cbb6baf commit e82acec49085ac100c69ca80923462dd728c569c
Showing with 2 additions and 4 deletions.
  1. +2 −4 daemon/src/engine/server/Crypto.cpp
@@ -38,11 +38,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <nettle/version.h>
// Compatibility with old nettle versions
#if NETTLE_VERSION_MAJOR < 3
#if !defined(AES256_KEY_SIZE)
#ifndef AES256_KEY_SIZE
# define AES256_KEY_SIZE 32
#endif
#define AES256_KEY_SIZE 32
typedef aes_ctx compat_aes256_ctx;

0 comments on commit e82acec

Please sign in to comment.