Lines Matching +full:use +full:- +full:handshake

26 #include "crypto-tls-x509-helpers.h"
27 #include "io/channel-tls.h"
28 #include "io/channel-socket.h"
29 #include "io-channel-helpers.h"
37 #define WORKDIR "tests/test-io-channel-tls-work/"
38 #define KEYFILE WORKDIR "key-ctx.pem"
61 data->finished = true; in test_tls_handshake_done()
62 data->failed = qio_task_propagate_error(task, NULL); in test_tls_handshake_done()
79 "verify-peer", "yes", in test_tls_creds_create()
84 * and the test-crypto-tlscreds test already in test_tls_creds_create()
87 "sanity-check", "no", in test_tls_creds_create()
99 * active TLS session after handshake completes. To
123 /* We'll use this for our fake client-server connection */ in test_io_channel_tls()
126 #define CLIENT_CERT_DIR "tests/test-io-channel-tls-client/" in test_io_channel_tls()
127 #define SERVER_CERT_DIR "tests/test-io-channel-tls-server/" in test_io_channel_tls()
139 g_assert(link(data->servercacrt, in test_io_channel_tls()
141 g_assert(link(data->servercrt, in test_io_channel_tls()
146 g_assert(link(data->clientcacrt, in test_io_channel_tls()
148 g_assert(link(data->clientcrt, in test_io_channel_tls()
166 wildcards = data->wildcards; in test_io_channel_tls()
183 * We have an evil loop to do the handshake in a single in test_io_channel_tls()
184 * thread, so we need these non-blocking to avoid deadlock in test_io_channel_tls()
193 data->hostname, &error_abort); in test_io_channel_tls()
213 * Finally we loop around & around doing handshake on each in test_io_channel_tls()
214 * session until we get an error, or the handshake completes. in test_io_channel_tls()
216 * deadlocking ourselves upon handshake in test_io_channel_tls()
224 g_assert(clientHandshake.failed == data->expectClientFail); in test_io_channel_tls()
225 g_assert(serverHandshake.failed == data->expectServerFail); in test_io_channel_tls()