view mcabber/mcabber/api.h @ 2283:6e1ead98930d

Check origin of roster pushes MCabber is vulnerable to roster push attacks as described by Daniel Gultsch at https://gultsch.de/gajim_roster_push_and_message_interception.html. This patch should fix the problem by checking the sender of the iq:roster stanzas. Thanks to Sam Whited for the report.
author Mikael Berthe <mikael@lilotux.net>
date Mon, 21 Nov 2016 20:35:28 +0100
parents 3d6986784dae
children 56b0cf821f64
line wrap: on
line source

#ifndef __MCABBER_API_H__
#define __MCABBER_API_H__ 1

#include <glib.h>
#include <mcabber/config.h> // For MCABBER_BRANCH

#define MCABBER_API_VERSION 1
#define MCABBER_API_MIN     1

/* #define MCABBER_BRANCH_DEV  0 */

// cmd_add returns gpointer id
#define MCABBER_API_HAVE_CMD_ID 1
// compl_new_category accepts flags argument
#define MCABBER_API_HAVE_COMPL_FLAGS 1

extern const gchar *mcabber_branch;
extern const guint mcabber_api_version;

#endif
/* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2:  For Vim users... */