diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-09 15:24:43 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-09 16:27:45 -0800 |
| commit | 0058b766b91f08b34dcef3c7bb55b216099f3f66 (patch) | |
| tree | 5ac1fa105d707018cdfa9f5244da5837a8c31601 /tests | |
| parent | 150d80c2c62ce3693dbbd0256c16337879c7d825 (diff) | |
| download | nng-0058b766b91f08b34dcef3c7bb55b216099f3f66.tar.gz nng-0058b766b91f08b34dcef3c7bb55b216099f3f66.tar.bz2 nng-0058b766b91f08b34dcef3c7bb55b216099f3f66.zip | |
TLS configuration changed to use discret _set_tls and _get_tls functions.
This is simpler, and more reliable than using socket options.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/wss.c | 4 |
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; |
