changeset 31219:2d3c1197f930

included string.h in cipher.h since almost all of the ciphers use it.
author Gary Kramlich <grim@reaperworld.com>
date Mon, 14 Feb 2011 06:54:12 +0000
parents 076d62344ede
children 554ac1421c9c
files libpurple/cipher.h libpurple/ciphers/des.c libpurple/ciphers/hmac.c libpurple/ciphers/md4.c libpurple/ciphers/md5.c libpurple/ciphers/rc4.c libpurple/ciphers/sha1.c libpurple/ciphers/sha256.c
diffstat 8 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/cipher.h	Mon Feb 14 06:51:10 2011 +0000
+++ b/libpurple/cipher.h	Mon Feb 14 06:54:12 2011 +0000
@@ -28,6 +28,7 @@
 #define PURPLE_CIPHER_H
 
 #include <glib.h>
+#include <string.h>
 
 #define PURPLE_CIPHER(obj)			((PurpleCipher *)(obj))			/**< PurpleCipher typecast helper			*/
 #define PURPLE_CIPHER_OPS(obj)		((PurpleCipherOps *)(obj))		/**< PurpleCipherInfo typecase helper		*/
--- a/libpurple/ciphers/des.c	Mon Feb 14 06:51:10 2011 +0000
+++ b/libpurple/ciphers/des.c	Mon Feb 14 06:54:12 2011 +0000
@@ -34,7 +34,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 #include <cipher.h>
-#include <string.h>
 
 /******************************************************************************
  * DES
--- a/libpurple/ciphers/hmac.c	Mon Feb 14 06:51:10 2011 +0000
+++ b/libpurple/ciphers/hmac.c	Mon Feb 14 06:54:12 2011 +0000
@@ -20,7 +20,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 #include <cipher.h>
-#include <string.h>
 
 struct HMAC_Context {
 	PurpleCipherContext *hash;
--- a/libpurple/ciphers/md4.c	Mon Feb 14 06:51:10 2011 +0000
+++ b/libpurple/ciphers/md4.c	Mon Feb 14 06:54:12 2011 +0000
@@ -34,7 +34,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 #include <cipher.h>
-#include <string.h>
 
 #define MD4_DIGEST_SIZE     16
 #define MD4_HMAC_BLOCK_SIZE 64
--- a/libpurple/ciphers/md5.c	Mon Feb 14 06:51:10 2011 +0000
+++ b/libpurple/ciphers/md5.c	Mon Feb 14 06:54:12 2011 +0000
@@ -22,9 +22,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
-
 #include <cipher.h>
-#include <string.h>
 
 #define MD5_HMAC_BLOCK_SIZE 64
 
--- a/libpurple/ciphers/rc4.c	Mon Feb 14 06:51:10 2011 +0000
+++ b/libpurple/ciphers/rc4.c	Mon Feb 14 06:54:12 2011 +0000
@@ -20,7 +20,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 #include <cipher.h>
-#include <string.h>
 
 struct RC4Context {
 	guchar state[256];
--- a/libpurple/ciphers/sha1.c	Mon Feb 14 06:51:10 2011 +0000
+++ b/libpurple/ciphers/sha1.c	Mon Feb 14 06:54:12 2011 +0000
@@ -20,7 +20,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 #include <cipher.h>
-#include <string.h>
 
 #define SHA1_HMAC_BLOCK_SIZE    64
 
--- a/libpurple/ciphers/sha256.c	Mon Feb 14 06:51:10 2011 +0000
+++ b/libpurple/ciphers/sha256.c	Mon Feb 14 06:54:12 2011 +0000
@@ -20,7 +20,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 #include <cipher.h>
-#include <string.h>
 
 #define SHA256_HMAC_BLOCK_SIZE  64