aboutsummaryrefslogtreecommitdiff
path: root/tests/wss.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wss.c')
-rw-r--r--tests/wss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wss.c b/tests/wss.c
index 28b578fc..331b9a97 100644
--- a/tests/wss.c
+++ b/tests/wss.c
@@ -179,7 +179,7 @@ init_dialer_wss(nng_dialer d)
0) {
goto out;
}
- rv = nng_dialer_set_ptr(d, NNG_OPT_TLS_CONFIG, cfg);
+ rv = nng_dialer_set_tls(d, cfg);
out:
nng_tls_config_free(cfg);
@@ -199,7 +199,7 @@ init_listener_wss(nng_listener l)
goto out;
}
- if ((rv = nng_listener_set_ptr(l, NNG_OPT_TLS_CONFIG, cfg)) != 0) {
+ if ((rv = nng_listener_set_tls(l, cfg)) != 0) {
// We can wind up with EBUSY from the server already running.
if (rv == NNG_EBUSY) {
rv = 0;