Navigation Menu

Skip to content

Commit

Permalink
Fix some compiler errors and support XC- certs
Browse files Browse the repository at this point in the history
  • Loading branch information
FaZeIlLuMiNaTi committed Jul 11, 2018
1 parent f869970 commit 374c873
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 8 deletions.
6 changes: 3 additions & 3 deletions CertUtils.m
Expand Up @@ -11,14 +11,14 @@ + (NSDictionary *)provisioningProfileAtPath:(NSString *)path {

NSData *stringData = [stringContent dataUsingEncoding:NSASCIIStringEncoding];

NSString *error;
NSError *error;
NSPropertyListFormat format;

id plist;

plist = [NSPropertyListSerialization propertyListFromData:stringData mutabilityOption:NSPropertyListImmutable format:&format errorDescription:&error];
plist = [NSPropertyListSerialization propertyListWithData:stringData options:/*unused*/0 format:&format error:&error];
if (!plist)NSLog(@"%@", error);

return plist;
}
@end
@end
2 changes: 1 addition & 1 deletion Resources/Info.plist
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>2.3.4</string>
<string>2.3.5</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationExitsOnSuspend</key>
Expand Down
2 changes: 1 addition & 1 deletion RootViewController.mm
Expand Up @@ -82,7 +82,7 @@ - (void)loadView {
NSLog(@"[CertRemainTime] expireDate = %@", usingCert.expireDate);
NSLog(@"[CertRemainTime] createDate = %@", usingCert.createDate);

self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[[self view] setBackgroundColor:[UIColor whiteColor]];

/* Label */
Expand Down
7 changes: 6 additions & 1 deletion SignedCert.m
Expand Up @@ -6,7 +6,12 @@ - (id)init: (NSDictionary*) plist {
self = [super init];
if (self) {
_appId = plist[@"AppIDName"];
if ([_appId rangeOfString:@"CY- "].location != NSNotFound) _appId = [_appId componentsSeparatedByString:@"CY- "][1];
if ([_appId rangeOfString:@"CY- "].location != NSNotFound) {
_appId = [_appId componentsSeparatedByString:@"CY- "][1];
}
if ([_appId rangeOfString:@"XC- "].location != NSNotFound) {
_appId = [_appId componentsSeparatedByString:@"XC- "][1];
}
_appId = [_appId lowercaseString];
_ttlDays = [plist[@"TimeToLive"] stringValue];
_expireDate = [plist objectForKey:@"ExpirationDate"];
Expand Down
2 changes: 1 addition & 1 deletion control
@@ -1,6 +1,6 @@
Package: fr.lululombard.certremaintime
Name: CertRemainTime
Version: 2.3.4
Version: 2.3.5
Architecture: iphoneos-arm
Description: Basic App to know when you'll need to resign your Jailbreak tool
Maintainer: lululombard <contact@lululombard.fr>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion theos

This file was deleted.

0 comments on commit 374c873

Please sign in to comment.