summaryrefslogtreecommitdiff
path: root/libpurple/ciphers
diff options
context:
space:
mode:
authorTomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>2013-04-14 01:04:19 +0200
committerTomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>2013-04-14 01:04:19 +0200
commite7fe55d7c1cb4d00654beef82e4082b3395eb6b3 (patch)
tree8114fa8ca5fa61c3f96a3f88a251bf37c5a2517e /libpurple/ciphers
parent255503987198ff75414b8bca8a106cea548f5384 (diff)
downloadpidgin-e7fe55d7c1cb4d00654beef82e4082b3395eb6b3.tar.gz
Fix warnings for ciphers
Diffstat (limited to 'libpurple/ciphers')
-rw-r--r--libpurple/ciphers/Makefile.am3
-rw-r--r--libpurple/ciphers/ciphers.h38
-rw-r--r--libpurple/ciphers/des.c1
-rw-r--r--libpurple/ciphers/gchecksum.c1
-rw-r--r--libpurple/ciphers/hmac.c1
-rw-r--r--libpurple/ciphers/md4.c1
-rw-r--r--libpurple/ciphers/rc4.c1
7 files changed, 46 insertions, 0 deletions
diff --git a/libpurple/ciphers/Makefile.am b/libpurple/ciphers/Makefile.am
index a5a1c5f0c6..9c8ca933a7 100644
--- a/libpurple/ciphers/Makefile.am
+++ b/libpurple/ciphers/Makefile.am
@@ -7,6 +7,9 @@ libpurple_ciphers_la_SOURCES=\
md4.c \
rc4.c
+noinst_HEADERS =\
+ ciphers.h
+
INCLUDES = -I$(top_srcdir)/libpurple
AM_CPPFLAGS = \
diff --git a/libpurple/ciphers/ciphers.h b/libpurple/ciphers/ciphers.h
new file mode 100644
index 0000000000..eb7e333831
--- /dev/null
+++ b/libpurple/ciphers/ciphers.h
@@ -0,0 +1,38 @@
+/* purple
+ *
+ * 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
+ */
+
+/* des.c */
+PurpleCipherOps * purple_des_cipher_get_ops(void);
+PurpleCipherOps * purple_des3_cipher_get_ops(void);
+
+/* gchecksum.c */
+PurpleCipherOps * purple_md5_cipher_get_ops(void);
+PurpleCipherOps * purple_sha1_cipher_get_ops(void);
+PurpleCipherOps * purple_sha256_cipher_get_ops(void);
+
+/* hmac.c */
+PurpleCipherOps * purple_hmac_cipher_get_ops(void);
+
+/* md4.c */
+PurpleCipherOps * purple_md4_cipher_get_ops(void);
+
+/* rc4.c */
+PurpleCipherOps * purple_rc4_cipher_get_ops(void);
diff --git a/libpurple/ciphers/des.c b/libpurple/ciphers/des.c
index 50083bf180..ff15429eb3 100644
--- a/libpurple/ciphers/des.c
+++ b/libpurple/ciphers/des.c
@@ -34,6 +34,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#include <cipher.h>
+#include "ciphers.h"
/******************************************************************************
* DES
diff --git a/libpurple/ciphers/gchecksum.c b/libpurple/ciphers/gchecksum.c
index d75b2aeeb7..91fe3b8948 100644
--- a/libpurple/ciphers/gchecksum.c
+++ b/libpurple/ciphers/gchecksum.c
@@ -1,4 +1,5 @@
#include <cipher.h>
+#include "ciphers.h"
static void
purple_g_checksum_init(PurpleCipherContext *context, GChecksumType type)
diff --git a/libpurple/ciphers/hmac.c b/libpurple/ciphers/hmac.c
index b09dbd7e46..02950bf4c8 100644
--- a/libpurple/ciphers/hmac.c
+++ b/libpurple/ciphers/hmac.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#include <cipher.h>
+#include "ciphers.h"
#include <util.h>
diff --git a/libpurple/ciphers/md4.c b/libpurple/ciphers/md4.c
index ac6654cf85..c424e3709c 100644
--- a/libpurple/ciphers/md4.c
+++ b/libpurple/ciphers/md4.c
@@ -34,6 +34,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#include <cipher.h>
+#include "ciphers.h"
#define MD4_DIGEST_SIZE 16
#define MD4_HMAC_BLOCK_SIZE 64
diff --git a/libpurple/ciphers/rc4.c b/libpurple/ciphers/rc4.c
index 2918f24548..e574d9be8b 100644
--- a/libpurple/ciphers/rc4.c
+++ b/libpurple/ciphers/rc4.c
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#include <cipher.h>
+#include "ciphers.h"
#include <util.h>
struct RC4Context {