Max has uploaded this change for review. ( https://gerrit.osmocom.org/11720
Change subject: Automatically disable GnuTLS fallback ...................................................................... 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 --- M src/gsm/gsm_utils.c 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/20/11720/1 diff --git a/src/gsm/gsm_utils.c b/src/gsm/gsm_utils.c index be35cd4..7e1f487 100644 --- a/src/gsm/gsm_utils.c +++ b/src/gsm/gsm_utils.c @@ -102,6 +102,7 @@ /* FIXME: this can be removed once we bump glibc requirements to 2.25:*/ #if __GNUC_PREREQ (2,25) #include <sys/random.h> +#undef USE_GNUTLS #elif HAVE_DECL_SYS_GETRANDOM #include <sys/syscall.h> #ifndef GRND_NONBLOCK -- To view, visit https://gerrit.osmocom.org/11720 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ibe2117afc050261668a4d5a590044aabcd08aefe Gerrit-Change-Number: 11720 Gerrit-PatchSet: 1 Gerrit-Owner: Max <msur...@sysmocom.de>