From 42e567c5a95af3e823a68fe7c949f5282d06d297 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 9 Nov 2018 13:13:45 +0100 Subject: Automatically disable GnuTLS fallback Disable GnuTLS fallback if sufficient glibc version detected. Previously GnuTLS fallback was used regardless of getrandom() availability in glibc. Fix this by automatically disabling it when not needed. This does not affect the ability to manually disable it unconditionally. Change-Id: Ibe2117afc050261668a4d5a590044aabcd08aefe --- src/gsm/gsm_utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gsm/gsm_utils.c b/src/gsm/gsm_utils.c index 14331e59..02cb3d55 100644 --- a/src/gsm/gsm_utils.c +++ b/src/gsm/gsm_utils.c @@ -103,6 +103,7 @@ #if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2,25) #pragma message ("glibc " OSMO_STRINGIFY_VAL(__GLIBC__) "." OSMO_STRINGIFY_VAL(__GLIBC_MINOR__) " random detected") #include +#undef USE_GNUTLS #elif HAVE_DECL_SYS_GETRANDOM #include #ifndef GRND_NONBLOCK -- cgit v1.2.3