Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: runtime/bin/secure_socket_patch.dart

Issue 1420923006: Add unique serial numbers to sample X509 certificates. Remove the "sendClientCertificate" parameter… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Delete all certificate signing private keys, so testers aren't vulnerable. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 patch class SecureSocket { 5 patch class SecureSocket {
6 /* patch */ factory SecureSocket._(RawSecureSocket rawSocket) => 6 /* patch */ factory SecureSocket._(RawSecureSocket rawSocket) =>
7 new _SecureSocket(rawSocket); 7 new _SecureSocket(rawSocket);
8 } 8 }
9 9
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 ENCRYPTED_SIZE : 74 ENCRYPTED_SIZE :
75 SIZE); 75 SIZE);
76 } 76 }
77 } 77 }
78 78
79 void connect(String hostName, 79 void connect(String hostName,
80 SecurityContext context, 80 SecurityContext context,
81 bool is_server, 81 bool is_server,
82 bool requestClientCertificate, 82 bool requestClientCertificate,
83 bool requireClientCertificate, 83 bool requireClientCertificate,
84 bool sendClientCertificate,
85 Uint8List protocols) native "SecureSocket_Connect"; 84 Uint8List protocols) native "SecureSocket_Connect";
86 85
87 void destroy() { 86 void destroy() {
88 buffers = null; 87 buffers = null;
89 _destroy(); 88 _destroy();
90 } 89 }
91 90
92 void _destroy() native "SecureSocket_Destroy"; 91 void _destroy() native "SecureSocket_Destroy";
93 92
94 void handshake() native "SecureSocket_Handshake"; 93 void handshake() native "SecureSocket_Handshake";
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 return new DateTime.fromMillisecondsSinceEpoch(_startValidity(), 172 return new DateTime.fromMillisecondsSinceEpoch(_startValidity(),
174 isUtc: true); 173 isUtc: true);
175 } 174 }
176 DateTime get endValidity { 175 DateTime get endValidity {
177 return new DateTime.fromMillisecondsSinceEpoch(_endValidity(), 176 return new DateTime.fromMillisecondsSinceEpoch(_endValidity(),
178 isUtc: true); 177 isUtc: true);
179 } 178 }
180 int _startValidity() native "X509_StartValidity"; 179 int _startValidity() native "X509_StartValidity";
181 int _endValidity() native "X509_EndValidity"; 180 int _endValidity() native "X509_EndValidity";
182 } 181 }
OLDNEW
« no previous file with comments | « runtime/bin/secure_socket.cc ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698