diff options
author | Alban Crequy <alban.crequy@collabora.co.uk> | 2008-05-09 17:10:01 +0000 |
---|---|---|
committer | Alban Crequy <alban.crequy@collabora.co.uk> | 2008-05-09 17:10:01 +0000 |
commit | ae0857382af1cdbbdad4882b7de6e20a8ce1b95e (patch) | |
tree | 28b88aeb0c1c5e0db1f96d62b82d4a2654849e47 /src/caps-hash.h | |
parent | 7fbcfb8495beb93fb032a144938a7c0063778378 (diff) |
Move hash functions in a new file caps-hash.[ch]
Diffstat (limited to 'src/caps-hash.h')
-rw-r--r-- | src/caps-hash.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/caps-hash.h b/src/caps-hash.h new file mode 100644 index 000000000..cc9c3c440 --- /dev/null +++ b/src/caps-hash.h @@ -0,0 +1,31 @@ +/* + * caps-hash.h - Headers for computing verification string hash (XEP-0115 v1.5) + * Copyright (C) 2008 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 __CAPS_HASH_H__ +#define __CAPS_HASH_H__ + +#include <loudmouth/loudmouth.h> +#include "gabble-connection.h" + +gchar *gabble_presence_compute_xep0115_hash_from_lm_node (LmMessageNode *node); +gchar *gabble_presence_compute_xep0115_hash_from_self_presence ( + GabbleConnection *self); + +#endif /* __CAPS_HASH_H__ */ |