From e61672c6932868d6b09ad0ae8453dc91c545742f Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 17 Oct 2011 15:49:20 +0200 Subject: removed dependency on gcrypt for recently-enough GnuTLS see: http://bugzilla.adiscon.com/show_bug.cgi?id=289 --- tests/tcpflood.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/tcpflood.c') diff --git a/tests/tcpflood.c b/tests/tcpflood.c index 8485acbb..8a34f06f 100644 --- a/tests/tcpflood.c +++ b/tests/tcpflood.c @@ -91,8 +91,10 @@ #include #ifdef ENABLE_GNUTLS # include -# include +# if GNUTLS_VERSION_NUMBER <= 0x020b00 +# include GCRY_THREAD_OPTION_PTHREAD_IMPL; +# endif #endif #define EXIT_FAILURE 1 @@ -707,7 +709,9 @@ initTLS(void) int r; /* order of gcry_control and gnutls_global_init matters! */ + #if GNUTLS_VERSION_NUMBER <= 0x020b00 gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); + #endif gnutls_global_init(); /* set debug mode, if so required by the options */ if(tlsLogLevel > 0) { -- cgit v1.2.3