diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-01-20 13:34:10 +0000 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-01-20 13:34:10 +0000 |
commit | 2c648be4944d3f65032fe2c5ad96ddcf58aaf852 (patch) | |
tree | e62b97fd26f102366838331787c417a8ba9bd19b /wocky/wocky-caps-hash.h | |
parent | b3812fad955afdbf21602039035ae9c377e99d5d (diff) |
caps-hash: add caps-hash.[ch] from gabble
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'wocky/wocky-caps-hash.h')
-rw-r--r-- | wocky/wocky-caps-hash.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/wocky/wocky-caps-hash.h b/wocky/wocky-caps-hash.h new file mode 100644 index 0000000..699b0c9 --- /dev/null +++ b/wocky/wocky-caps-hash.h @@ -0,0 +1,32 @@ +/* + * wocky-caps-hash.h - Headers for computing verification string hash (XEP-0115 v1.5) + * Copyright (C) 2008-2010 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __WOCKY_CAPS_HASH_H__ +#define __WOCKY_CAPS_HASH_H__ + +#include <loudmouth/loudmouth.h> + +#include "connection.h" +#include "gabble/caps-hash.h" + +gchar *caps_hash_compute_from_lm_node (LmMessageNode *node); +gchar *caps_hash_compute_from_self_presence ( + GabbleConnection *self); + +#endif /* __WOCKY_CAPS_HASH_H__ */ |