Skip to content

Commit 989ddf4

Browse files
author
Danny Greg
committed
Merge branch 'develop'
2 parents 72cfce2 + 8c691be commit 989ddf4

8 files changed

+198
-96
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build
2-
*.mode2v3
2+
*.mode*
33
*.pbxuser
4-
*.perspectivev3
4+
*.perspectivev3

objc/CFobLicGenerator.m

+8
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ - (id)initWithPrivateKey:(NSString *)privKey {
5050
return self;
5151
}
5252

53+
- (void)finalize
54+
{
55+
if (dsa)
56+
DSA_free(dsa);
57+
[self shutdownOpenSSL];
58+
[super finalize];
59+
}
60+
5361
- (void)dealloc {
5462
if (dsa)
5563
DSA_free(dsa);

objc/CFobLicVerifier.m

+8
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ - (id)initWithPublicKey:(NSString *)pubKey {
7979
return self;
8080
}
8181

82+
- (void)finalize
83+
{
84+
if (dsa)
85+
DSA_free(dsa);
86+
[self shutdownOpenSSL];
87+
[super finalize];
88+
}
89+
8290
- (void)dealloc {
8391
if (dsa)
8492
DSA_free(dsa);

objc/CocoaFob-Info.plist

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>English</string>
7+
<key>CFBundleExecutable</key>
8+
<string>${EXECUTABLE_NAME}</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundlePackageType</key>
14+
<string>FMWK</string>
15+
<key>CFBundleShortVersionString</key>
16+
<string>1.0</string>
17+
<key>CFBundleSignature</key>
18+
<string>????</string>
19+
<key>CFBundleVersion</key>
20+
<string>1</string>
21+
</dict>
22+
</plist>

objc/NSData+PECrypt.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ - (NSString *)base32 {
2222
if (!buf)
2323
return @"";
2424
base32_encode((uint8_t *)buf, bufsize, [self bytes], [self length]);
25-
NSString *s = [NSString stringWithCString:buf length:bufsize];
25+
NSString *s = [NSString stringWithCString:buf encoding:NSUTF8StringEncoding];
2626
free(buf);
2727
return s;
2828
}

objc/NSString+PECrypt.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
//
1010

1111
#import "NSString+PECrypt.h"
12-
#import "sha.h"
13-
#import "bio.h"
14-
#import "evp.h"
12+
#import <openssl/sha.h>
13+
#import <openssl/bio.h>
14+
#import <openssl/evp.h>
1515

1616
@implementation NSString (PXCrypt)
1717

objc/NSString-Base64Extensions.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
// PixelEspresso, http://www.pixelespressoapps.com/
2323

2424
#import "NSString-Base64Extensions.h"
25-
#import "bio.h"
26-
#import "evp.h"
25+
#import <openssl/bio.h>
26+
#import <openssl/evp.h>
2727

2828

2929
@implementation NSString (Base64)

objc/cocoafob.xcodeproj/project.pbxproj

+152-88
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)