diff options
Diffstat (limited to 'tests/tests.h')
| -rw-r--r-- | tests/tests.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tests.h b/tests/tests.h index 85e6d9b..9c3902b 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -2,7 +2,7 @@ * Software License Agreement (BSD License) * * Author: Sebastien Decugis <sdecugis@freediameter.net> * * * -* Copyright (c) 2013, WIDE Project and NICT * +* Copyright (c) 2019, WIDE Project and NICT * * All rights reserved. * * * * Redistribution and use of this software in source and binary forms, with or without modification, are * @@ -131,7 +131,9 @@ static void * signal_catch(void * arg) } +#ifndef GNUTLS_VERSION_210 GCRY_THREAD_OPTION_PTHREAD_IMPL; +#endif /* GNUTLS_VERSION_210 */ /* gnutls debug. */ static void fd_gnutls_debug(int level, const char * str) { @@ -213,8 +215,10 @@ static inline void test_init(int argc, char * argv[], char *fname) parse_cmdline(argc, argv); /* Initialize gcrypt and gnutls */ +#ifndef GNUTLS_VERSION_210 (void) gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); (void) gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); +#endif /* GNUTLS_VERSION_210 */ CHECK( 0, gnutls_global_init()); /* Set gnutls debug level ? */ if (gnutls_debug) { |
