mirror of https://github.com/aria2/aria2
AppleTLS: Enable BEAST mitigations in ST
Only available in 10.9+, but since we might be building on a previous version but running on 10.9+, always try to set the option.pull/220/merge
parent
e195dc5f00
commit
18c35f56b8
|
@ -382,6 +382,16 @@ AppleTLSSession::AppleTLSSession(AppleTLSContext* ctx)
|
||||||
(void)SSLSetProtocolVersionEnabled(sslCtx_, kTLSProtocol12, true);
|
(void)SSLSetProtocolVersionEnabled(sslCtx_, kTLSProtocol12, true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// BEAST
|
||||||
|
(void)SSLSetSessionOption(
|
||||||
|
sslCtx_,
|
||||||
|
#if defined(__MAC_10_9)
|
||||||
|
kSSLSessionOptionSendOneByteRecord,
|
||||||
|
#else
|
||||||
|
(SSLSessionOption)0x4, /* kSSLSessionOptionSendOneByteRecord */
|
||||||
|
#endif
|
||||||
|
true);
|
||||||
|
|
||||||
#if defined(__MAC_10_8)
|
#if defined(__MAC_10_8)
|
||||||
if (!ctx->getVerifyPeer()) {
|
if (!ctx->getVerifyPeer()) {
|
||||||
// This disables client verification
|
// This disables client verification
|
||||||
|
|
Loading…
Reference in New Issue