# HG changeset patch # User Thomas Klausner # Date 1558195128 -7200 # Node ID 925470fbe59d1389e7ad16e0c63b52430be4fd22 # Parent b68fb21c2f72c490ffa938595f675bafaa90b739 Avoid deprecated functions (like in libfdcore/core.c). diff -r b68fb21c2f72 -r 925470fbe59d tests/tests.h --- 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) {