Mercurial > hg > freeDiameter
diff tests/tests.h @ 1357:925470fbe59d
Avoid deprecated functions (like in libfdcore/core.c).
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Sat, 18 May 2019 17:58:48 +0200 |
parents | 1af09cc156d6 |
children | 566bb46cc73f |
line wrap: on
line diff
--- a/tests/tests.h Sat May 18 14:43:01 2019 +0200 +++ b/tests/tests.h Sat May 18 17:58:48 2019 +0200 @@ -131,7 +131,9 @@ } +#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 @@ 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) {