libidn2 in gnunet
Since we are going to deprecate the 'blog' function on gnunet.org soon'ish (sometime in 2019), here's to sporadic public notes on gnunet changes.
Today: libidn2 support.
was opened about a year ago when I found this patch dumped on github.com by WJ Liu / multiSnow. Today we merged a variation of this patch:
- check for libidn2. if this returns true, we take libidn2 and ignore any occurence of libidn.
- check for libidn. if this returns true we take libidn.
- if both libidn and libidn2 checks returned true, we link again libidn2.
- if both checks return false, we fail and message that libidn or libidn2 are required, with a preference for libidn2.