robbiehanson / XMPPFramework

An XMPP Framework in Objective-C for Mac and iOS
Other
5.91k stars 2.09k forks source link

Using Apple's ICU StringPrep instead of Libidn #1178

Open karimhm opened 4 years ago

karimhm commented 4 years ago

Currently, XMPPFramework relies on Libidn (libidn-framework) to encode passwords and identifiers and other strings.

iOS ships with ICU which contains serval functions that can handle encoding string according to StingPrep framework as described by RFC 3454, the functions are defined in the usprep.h header.

Libidn is licensed under the LGPL 2.1 license a thing that might be a problem for some.

chrisballinger commented 4 years ago

I'm in favor of switching if possible, would be great to eliminate another dependency.