WinTLS: Use SCH_USE_STRONG_CRYPTO

See: #217
pull/220/merge
Nils Maier 2014-04-13 16:04:24 +02:00
parent 0a51b8d172
commit 8d55e30561
1 changed files with 8 additions and 2 deletions

View File

@ -44,6 +44,10 @@
#include "message.h"
#include "util.h"
#ifndef SCH_USE_STRONG_CRYPTO
#define SCH_USE_STRONG_CRYPTO 0x00400000
#endif
namespace aria2 {
WinTLSContext::WinTLSContext(TLSSessionSide side)
@ -95,7 +99,8 @@ void WinTLSContext::setVerifyPeer(bool verify)
SCH_CRED_NO_DEFAULT_CREDS |
SCH_CRED_AUTO_CRED_VALIDATION |
SCH_CRED_REVOCATION_CHECK_CHAIN |
SCH_CRED_IGNORE_NO_REVOCATION_CHECK;
SCH_CRED_IGNORE_NO_REVOCATION_CHECK |
SCH_USE_STRONG_CRYPTO;
}
else {
credentials_.dwFlags =
@ -103,7 +108,8 @@ void WinTLSContext::setVerifyPeer(bool verify)
SCH_CRED_MANUAL_CRED_VALIDATION |
SCH_CRED_IGNORE_NO_REVOCATION_CHECK |
SCH_CRED_IGNORE_REVOCATION_OFFLINE |
SCH_CRED_NO_SERVERNAME_CHECK;
SCH_CRED_NO_SERVERNAME_CHECK |
SCH_USE_STRONG_CRYPTO;
}
cred_.reset();
}