pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
Manually check for xgettext as we need it for NLS support.
2021-03-02, Gary Kramlich
1692f596a13d
Manually check for xgettext as we need it for NLS support.
See https://github.com/mesonbuild/meson/issues/8436 for the upstream bug this is working around.
Also fixed an issue where the appdata file was causing configuration to fail if nls was turned off.
Testing Done:
Ran locally with `-Dnls=true` and `-Dnls=false`.
Reviewed at https://reviews.imfreedom.org/r/548/
/*
* purple - Jabber Protocol Plugin
*
* Purple is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* 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
<purple.h>
#include
"jabber.h"
#include
"auth.h"
static
PurpleXmlNode
*
finish_webex_authentication
(
JabberStream
*
js
)
{
PurpleXmlNode
*
auth
;
auth
=
purple_xmlnode_new
(
"auth"
);
purple_xmlnode_set_namespace
(
auth
,
NS_XMPP_SASL
);
purple_xmlnode_set_attrib
(
auth
,
"mechanism"
,
"WEBEX-TOKEN"
);
purple_xmlnode_insert_data
(
auth
,
purple_connection_get_password
(
js
->
gc
),
-1
);
return
auth
;
}
static
JabberSaslState
jabber_webex_start
(
JabberStream
*
js
,
PurpleXmlNode
*
packet
,
PurpleXmlNode
**
response
,
char
**
error
)
{
*
response
=
finish_webex_authentication
(
js
);
return
JABBER_SASL_STATE_OK
;
}
static
JabberSaslMech
webex_token_mech
=
{
101
,
/* priority */
"WEBEX-TOKEN"
,
/* name */
jabber_webex_start
,
NULL
,
/* handle_challenge */
NULL
,
/* handle_success */
NULL
,
/* handle_failure */
NULL
/* dispose */
};
JabberSaslMech
*
jabber_auth_get_webex_token_mech
(
void
)
{
return
&
webex_token_mech
;
}