mirror of https://github.com/aria2/aria2
Fix AppleTLSContext protocol selection
parent
0e5ed611d1
commit
46aa2f6af3
|
@ -371,16 +371,15 @@ AppleTLSSession::AppleTLSSession(AppleTLSContext* ctx)
|
||||||
(void)SSLSetProtocolVersionMin(sslCtx_, kSSLProtocol3);
|
(void)SSLSetProtocolVersionMin(sslCtx_, kSSLProtocol3);
|
||||||
break;
|
break;
|
||||||
case TLS_PROTO_TLS10:
|
case TLS_PROTO_TLS10:
|
||||||
(void)SSLSetProtocolVersionMin(sslCtx_, kSSLProtocol1);
|
(void)SSLSetProtocolVersionMin(sslCtx_, kTLSProtocol1);
|
||||||
break;
|
break;
|
||||||
case TLS_PROTO_TLS11:
|
case TLS_PROTO_TLS11:
|
||||||
(void)SSLSetProtocolVersionMin(sslCtx_, kSSLProtocol11);
|
(void)SSLSetProtocolVersionMin(sslCtx_, kTLSProtocol11);
|
||||||
break;
|
break;
|
||||||
case TLS_PROTO_TLS12:
|
case TLS_PROTO_TLS12:
|
||||||
(void)SSLSetProtocolVersionMin(sslCtx_, kSSLProtocol12);
|
(void)SSLSetProtocolVersionMin(sslCtx_, kTLSProtocol12);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
(void)SSLSetProtocolVersionMax(sslCtx_, kTLSProtocol12);
|
|
||||||
#else
|
#else
|
||||||
(void)SSLSetProtocolVersionEnabled(sslCtx_, kSSLProtocolAll, false);
|
(void)SSLSetProtocolVersionEnabled(sslCtx_, kSSLProtocolAll, false);
|
||||||
switch (ctx->getMinTLSVersion()) {
|
switch (ctx->getMinTLSVersion()) {
|
||||||
|
|
Loading…
Reference in New Issue