OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // |
| 5 // OtherResources=certificates/server_chain.pem |
| 6 // OtherResources=certificates/server_key.pem |
4 | 7 |
5 // This test verifies that client certificates work, if the client and server | 8 // This test verifies that client certificates work, if the client and server |
6 // are in separate processes, and that connection renegotiation works, and | 9 // are in separate processes, and that connection renegotiation works, and |
7 // can request a client certificate to be sent. | 10 // can request a client certificate to be sent. |
8 | 11 |
9 import "dart:async"; | 12 import "dart:async"; |
10 import "dart:convert"; | 13 import "dart:convert"; |
11 import "dart:io"; | 14 import "dart:io"; |
12 | 15 |
13 import "package:expect/expect.dart"; | 16 import "package:expect/expect.dart"; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 if (result.exitCode != 0) { | 77 if (result.exitCode != 0) { |
75 print("Client failed, stdout:"); | 78 print("Client failed, stdout:"); |
76 print(result.stdout); | 79 print(result.stdout); |
77 print(" stderr:"); | 80 print(" stderr:"); |
78 print(result.stderr); | 81 print(result.stderr); |
79 Expect.fail('Client subprocess exit code: ${result.exitCode}'); | 82 Expect.fail('Client subprocess exit code: ${result.exitCode}'); |
80 } | 83 } |
81 }); | 84 }); |
82 }); | 85 }); |
83 } | 86 } |
OLD | NEW |