summary refs log tree commit diff stats
path: root/plugins/fishlim/fish.c
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-11-25 10:24:33 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-11-25 10:24:33 +0100
commit81ed389e71cda96c1bd5935dd5f9cb98327870ce (patch)
treeaf69e7a16110b55046cc36982be6c94fc26fcbd5 /plugins/fishlim/fish.c
parent3067b7b267d881963498d277d657e679ac15af45 (diff)
get in sync with fishlim upstream
Diffstat (limited to 'plugins/fishlim/fish.c')
-rw-r--r--plugins/fishlim/fish.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/fishlim/fish.c b/plugins/fishlim/fish.c
index 0d92ecc9..cb977d7f 100644
--- a/plugins/fishlim/fish.c
+++ b/plugins/fishlim/fish.c
@@ -58,14 +58,14 @@ static const signed char fish_unbase64[256] = {
 
 char *fish_encrypt(const char *key, size_t keylen, const char *message) {
     BF_KEY bfkey;
-	size_t messagelen;
-	size_t i;
-	int j;
-	char *encrypted;
-	char *end;
-	unsigned char bit;
-	unsigned char word;
-	unsigned char d;
+    size_t messagelen;
+    size_t i;
+    int j;
+    char *encrypted;
+    char *end;
+    unsigned char bit;
+    unsigned char word;
+    unsigned char d;
     BF_set_key(&bfkey, keylen, (const unsigned char*)key);
     
     messagelen = strlen(message);
@@ -111,12 +111,12 @@ char *fish_encrypt(const char *key, size_t keylen, const char *message) {
 
 char *fish_decrypt(const char *key, size_t keylen, const char *data) {
     BF_KEY bfkey;
-	size_t i;
-	char *decrypted;
-	char *end;
-	unsigned char bit;
-	unsigned char word;
-	unsigned char d;
+    size_t i;
+    char *decrypted;
+    char *end;
+    unsigned char bit;
+    unsigned char word;
+    unsigned char d;
     BF_set_key(&bfkey, keylen, (const unsigned char*)key);
     
     decrypted = malloc(strlen(data)+1);