From 1e72f0d5b636d4f9a5ad39e2ac01230fcb2badd8 Mon Sep 17 00:00:00 2001
From: Andreas Schneider <asn@samba.org>
Date: Fri, 6 Dec 2019 08:49:54 +0100
Subject: [PATCH 163/187] auth:tests: Only enable torture_gnutls_aes_128_cfb()
on GnuTLS >= 3.6.11
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 01f531ba6ba1306e99d2e4715dadae073eb0a8ec)
---
libcli/auth/tests/test_gnutls.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libcli/auth/tests/test_gnutls.c b/libcli/auth/tests/test_gnutls.c
index 066d5cf0a9d..412a454b762 100644
--- a/libcli/auth/tests/test_gnutls.c
+++ b/libcli/auth/tests/test_gnutls.c
@@ -29,7 +29,7 @@
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>
-#ifdef HAVE_GNUTLS_AES_CFB8
+#if defined(HAVE_GNUTLS_AES_CFB8) && GNUTLS_VERSION_NUMBER > 0x03060a
static void torture_gnutls_aes_128_cfb_flags(void **state,
const DATA_BLOB session_key,
const DATA_BLOB seq_num_initial,
@@ -135,7 +135,7 @@ static void torture_gnutls_aes_128_cfb_flags(void **state,
static void torture_gnutls_aes_128_cfb(void **state)
{
-#ifdef HAVE_GNUTLS_AES_CFB8
+#if defined(HAVE_GNUTLS_AES_CFB8) && GNUTLS_VERSION_NUMBER > 0x03060a
const uint8_t _session_key[16] = {
0x8E, 0xE8, 0x27, 0x85, 0x83, 0x41, 0x3C, 0x8D,
0xC9, 0x54, 0x70, 0x75, 0x8E, 0xC9, 0x69, 0x91
--
2.23.0