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
/*
* Evolution integration plugin for Purple
*
* Copyright (C) 2003 Christian Hammond.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02111-1301, USA.
*/
#include"internal.h"
#include"pidgin.h"
#include"connection.h"
#include"debug.h"
#include"prefs.h"
#include"notify.h"
#include"signals.h"
#include"util.h"
#include"version.h"
#include"gtkblist.h"
#include"gtkconv.h"
#include"gtkplugin.h"
#include"gtkutils.h"
#include"gevolution.h"
#if 0
/* These are private headers that we probably should never have been
* including. Maybe very early versions of e-d-s required this?
*
* also, bonobo has gone away as of e-d-s 2.29.1, and this plugin still
* seems to work even on e-d-s 1.10.3 without us touching it.
* Maybe it's not really working though. I'm sure we'll find out.