pike.git/
src/
modules/
_Stdio/
async_tls_close_test.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2014-05-21
2014-05-21 15:15:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>
60c32649c48bd02986ea22b87f550fefb9a17eed (
7
lines) (+
7
/-
0
)
[
Show
|
Annotate
]
Branch:
8.0
Testsuite: Updated the Async TLS Close test to the new API.
Fixes [LysLysKOM 20825521].
5:
{ string fail;
+
if (argc < 3) {
+
werror("Expected at least two arguments.\n");
+
exit(1);
+
}
+
int clean_close = argv[1] == "1"; int block = argv[2] == "1";
22:
lambda (int success) { if (success) { tlscon = SSL.sslfile (con, SSL.Context());
+
tlscon->connect("localhost");
tlscon->set_write_callback (lambda () { fail = "Handshake should not succeed.\n"; });