Commit 36fbc1e4 authored by jehan's avatar jehan

switch APN connection to tls1.2

parent b9bfcc6f
Pipeline #6992 passed with stages
in 43 minutes and 31 seconds
......@@ -227,8 +227,7 @@ void PushNotificationService::setupiOSClient(const std::string &certdir, const s
(cert.compare(cert.length() - suffix.length(), suffix.length(), suffix) != 0)) {
continue;
}
/*March 2016: Yes Apple production push server doesn't support TLS > 1.0*/
SSL_CTX* ctx = SSL_CTX_new(TLSv1_client_method());
SSL_CTX* ctx = SSL_CTX_new(TLSv1_2_method());
if (!ctx) {
SLOGE << "Could not create ctx!";
ERR_print_errors_fp(stderr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment