summaryrefslogtreecommitdiff
path: root/test/ssl.c
diff options
context:
space:
mode:
authorJoe Orton <jorton@redhat.com>2019-03-07 12:45:02 +0000
committerJoe Orton <jorton@redhat.com>2019-03-07 12:45:02 +0000
commitb1677e95d38cbfe23753adee1c92e9436c7e5ed3 (patch)
treed3a50703193bdc028dba22b50061c15de2d6981e /test/ssl.c
parent3eef48050dd22a99b242a1f88337b4cb1cfd4bb9 (diff)
downloadneon-git-b1677e95d38cbfe23753adee1c92e9436c7e5ed3.tar.gz
* test/ssl.c (fail_not_ssl): Use make_ssl_session().
Diffstat (limited to 'test/ssl.c')
-rw-r--r--test/ssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ssl.c b/test/ssl.c
index a427673..a20fd0c 100644
--- a/test/ssl.c
+++ b/test/ssl.c
@@ -524,10 +524,10 @@ static int just_serve_string(ne_socket *sock, void *userdata)
/* test for the SSL negotiation failing. */
static int fail_not_ssl(void)
{
- ne_session *sess = DEFSESS;
+ ne_session *sess;
int ret;
- CALL(spawn_server(7777, just_serve_string, "Hello, world.\n"));
+ CALL(make_ssl_session(&sess, NULL, just_serve_string, "Hello, world.\n"));
ret = any_request(sess, "/bar");
CALL(await_server());