summaryrefslogtreecommitdiff
path: root/tests/wocky-test-connector-server.c
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2009-09-11 18:45:31 +0100
committerVivek Dasmohapatra <vivek@collabora.co.uk>2009-09-11 18:45:31 +0100
commitb657eaa0861e64cc428adce99fa611e16ce0f763 (patch)
treeffd86cdca1dc57dc73a075ada7800e9f33800d94 /tests/wocky-test-connector-server.c
parent1c6b431e6fbc2413f1e2c7557caf15a02048d399 (diff)
Update tests to new API (CAs not added in constructor any more).
Diffstat (limited to 'tests/wocky-test-connector-server.c')
-rw-r--r--tests/wocky-test-connector-server.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/wocky-test-connector-server.c b/tests/wocky-test-connector-server.c
index 10210b0..f08df99 100644
--- a/tests/wocky-test-connector-server.c
+++ b/tests/wocky-test-connector-server.c
@@ -933,7 +933,7 @@ handle_starttls (TestConnectorServer *self,
* gnutls_global_set_log_level (10); */
if (problem->death & SERVER_DEATH_TLS_NEG)
priv->tls_sess = wocky_tls_session_server_new (priv->stream,
- 1024, NULL, NULL, NULL, NULL);
+ 1024, NULL, NULL);
else
{
int x;
@@ -950,9 +950,8 @@ handle_starttls (TestConnectorServer *self,
}
}
DEBUG2 ("cert file: %s", crt);
- priv->tls_sess = wocky_tls_session_server_new (priv->stream, 1024,
- key, crt, TLS_CA_CRT_FILE,
- NULL);
+ priv->tls_sess =
+ wocky_tls_session_server_new (priv->stream, 1024, key, crt);
}
}
@@ -1203,8 +1202,8 @@ static void startssl (TestConnectorServer *self)
DEBUG ("creating SSL Session [server]");
if (problem->death & SERVER_DEATH_TLS_NEG)
- priv->tls_sess = wocky_tls_session_server_new (priv->stream, 1024,
- NULL, NULL, NULL, NULL);
+ priv->tls_sess =
+ wocky_tls_session_server_new (priv->stream, 1024, NULL, NULL);
else
{
int x;
@@ -1221,8 +1220,8 @@ static void startssl (TestConnectorServer *self)
}
}
- priv->tls_sess = wocky_tls_session_server_new (priv->stream, 1024,
- key, crt, TLS_CA_CRT_FILE, NULL);
+ priv->tls_sess =
+ wocky_tls_session_server_new (priv->stream, 1024, key, crt);
}
DEBUG ("starting server SSL handshake");