aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDataAdditions.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-31 18:01:50 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-31 18:01:50 +0000
commitea5088aa123745243ea6d93f684d0471be83b324 (patch)
treefa733fa620b9078753ef903dce36c3337da18e21 /Source/SPDataAdditions.m
parentbb70e8aac1d86585e1cb2ad56c440f0298858c9f (diff)
downloadsequelpro-ea5088aa123745243ea6d93f684d0471be83b324.tar.gz
sequelpro-ea5088aa123745243ea6d93f684d0471be83b324.tar.bz2
sequelpro-ea5088aa123745243ea6d93f684d0471be83b324.zip
Tidy up imports and fix 'Reverse Sort Order' when sorting connection favorites (Thanks Hans).
Diffstat (limited to 'Source/SPDataAdditions.m')
-rw-r--r--Source/SPDataAdditions.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPDataAdditions.m b/Source/SPDataAdditions.m
index d50ee631..b8f4ee3a 100644
--- a/Source/SPDataAdditions.m
+++ b/Source/SPDataAdditions.m
@@ -28,6 +28,7 @@
// More info at <http://code.google.com/p/sequel-pro/>
#import "SPDataAdditions.h"
+
#include <zlib.h>
#include <openssl/aes.h>
#include <openssl/sha.h>
@@ -107,7 +108,7 @@ static char base64encodingTable[64] = {
return base64;
}
-- (NSData*)dataEncryptedWithPassword:(NSString*)password
+- (NSData *)dataEncryptedWithPassword:(NSString *)password
{
// Create a random 128-bit initialization vector
srand(time(NULL));
@@ -146,7 +147,7 @@ static char base64encodingTable[64] = {
return [NSData dataWithBytesNoCopy:encryptedBytes length:totalLength];
}
-- (NSData*)dataDecryptedWithPassword:(NSString*)password
+- (NSData *)dataDecryptedWithPassword:(NSString *)password
{
// Create the key from the password hash