mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
Switch to TLS 1.2 as minimum requirement
According to https://tools.ietf.org/id/draft-ietf-tls-oldversions-deprecate-06.txt TEST=Not applicable, config change. Closes https://github.com/dart-lang/sdk/pull/41135 https://github.com/dart-lang/sdk/pull/41135 GitOrigin-RevId: e1dc037c1e22996b2085e3d16427525c033bdc01 Change-Id: Ic8340eee7fa26846302727672ca7989ce1e93c99 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140481 Commit-Queue: Michael Thomsen <mit@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
This commit is contained in:
parent
7abf6bfab7
commit
8062c4cc67
|
@ -807,7 +807,7 @@ void FUNCTION_NAME(SecurityContext_Allocate)(Dart_NativeArguments args) {
|
|||
SSLFilter::InitializeLibrary();
|
||||
SSL_CTX* ctx = SSL_CTX_new(TLS_method());
|
||||
SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, SSLCertContext::CertificateCallback);
|
||||
SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION);
|
||||
SSL_CTX_set_min_proto_version(ctx, TLS1_2_VERSION);
|
||||
SSL_CTX_set_cipher_list(ctx, "HIGH:MEDIUM");
|
||||
SSLCertContext* context = new SSLCertContext(ctx);
|
||||
Dart_Handle err = SetSecurityContext(args, context);
|
||||
|
|
Loading…
Reference in a new issue