mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-27 06:32:59 +00:00
fixed possible concurrent modification bug
This commit is contained in:
parent
fe64d70577
commit
132a90a865
@ -202,6 +202,8 @@ static NSData* p12 = nil;
|
||||
}
|
||||
|
||||
+ (void) generateKeyPairUsingSSl {
|
||||
static dispatch_once_t pred;
|
||||
dispatch_once(&pred, ^{
|
||||
if (![CryptoManager keyPairExists]) {
|
||||
|
||||
NSLog(@"Generating Certificate... ");
|
||||
@ -216,7 +218,9 @@ static NSData* p12 = nil;
|
||||
//NSLog(@"Writing cert and key to: \n%@\n%@", certFile, keyPairFile);
|
||||
saveCertKeyPair([certFile UTF8String], [p12File UTF8String], [keyPairFile UTF8String], certKeyPair);
|
||||
freeCertKeyPair(certKeyPair);
|
||||
NSLog(@"Certificate created");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
+ (NSString*) getUniqueID {
|
||||
|
Loading…
x
Reference in New Issue
Block a user