pidgin/pidgin

Implement SNI support for the gnutls SSL plugin.
release-2.x.y
2019-12-16, Mihai Moldovan
6dba8046e1b1
Implement SNI support for the gnutls SSL plugin.

Note that gnutls is picky in regard to what it accepts as the server name - it
MUST be a domain name. IP addresses are not supported according to the
documentation.

Hence, filter out IP addresses and hope that whatever is not recognized as
such an address is actually a domain name. This will probably fail for more
exotic addresses (especially in IPv6 realm), but wiring up a full-blown parser
is too much effort and SSL plugins are not part of purple-3 anyway.

Fixes #17300
# Makefile.mingw
#
# Author: hermanator12002@yahoo.com
# Date 9/11/02
# Description: Protocols Makefile for win32 (mingw) port of libpurple
#
PIDGIN_TREE_TOP := ../..
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
SUBDIRS = gg irc jabber novell null oscar sametime silc simple bonjour
.PHONY: all install clean
all:
for subdir in $(SUBDIRS); do \
$(MAKE) -C $$subdir -f $(MINGW_MAKEFILE) || exit 1; \
done;
install: all
for subdir in $(SUBDIRS); do \
$(MAKE) -C $$subdir -f $(MINGW_MAKEFILE) install || exit 1; \
done;
clean:
for subdir in $(SUBDIRS); do \
$(MAKE) -C $$subdir -f $(MINGW_MAKEFILE) clean || exit 1; \
done;