mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-25 13:31:47 +00:00
Require cert pinning for HTTPS
This commit is contained in:
1 parent
fbae7f88b5
commit
72dcd76e37
3 files changed
+53
-21
No files matched your search
@@ -78,6 +78,10 @@
|
||||
return;
|
||||
}
|
||||
|
||||
// Pin the cert for TLS usage on this host
|
||||
NSData* derCertBytes = [CryptoManager pemToDer:[Utils hexToBytes:plainCert]];
|
||||
[_httpManager setServerCert:derCertBytes];
|
||||
|
||||
CryptoManager* cryptoMan = [[CryptoManager alloc] init];
|
||||
NSData* aesKey;
|
||||
|
||||
@@ -181,7 +185,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
[_callback pairSuccessful: [CryptoManager pemToDer:[Utils hexToBytes:plainCert]]];
|
||||
[_callback pairSuccessful: derCertBytes];
|
||||
}
|
||||
|
||||
- (BOOL) verifyResponseStatus:(HttpResponse*)resp {
|
||||
|
||||
Reference in new issue
Block a user