Skip to content

Commit

Permalink
[nnbd] Fix SecureServerSocket not allowing null SecurityContext.
Browse files Browse the repository at this point in the history
Bug: dart-lang/sdk#40040
Change-Id: I030f3f6740fd0ffefaa20fac1be69fb74c5cbff5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134293
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
  • Loading branch information
sortie committed Feb 7, 2020
1 parent 7704b83 commit 514a8d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk_nnbd/lib/io/secure_server_socket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class SecureServerSocket extends Stream<SecureSocket> {
* isolates this way.
*/
static Future<SecureServerSocket> bind(
address, int port, SecurityContext context,
address, int port, SecurityContext? context,
{int backlog: 0,
bool v6Only: false,
bool requestClientCertificate: false,
Expand Down Expand Up @@ -124,7 +124,7 @@ class RawSecureServerSocket extends Stream<RawSecureSocket> {
final RawServerSocket _socket;
late StreamController<RawSecureSocket> _controller;
StreamSubscription<RawSocket>? _subscription;
final SecurityContext _context;
final SecurityContext? _context;
final bool requestClientCertificate;
final bool requireClientCertificate;
final List<String>? supportedProtocols;
Expand Down Expand Up @@ -195,7 +195,7 @@ class RawSecureServerSocket extends Stream<RawSecureSocket> {
* multiple isolates this way.
*/
static Future<RawSecureServerSocket> bind(
address, int port, SecurityContext context,
address, int port, SecurityContext? context,
{int backlog: 0,
bool v6Only: false,
bool requestClientCertificate: false,
Expand Down

0 comments on commit 514a8d4

Please sign in to comment.