diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-09-07 11:33:05 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-10-06 13:59:35 -0700 |
| commit | 34be2c20a62e94e3a2815dd869609554b3922477 (patch) | |
| tree | 55eb5ae8aec9d9213f502bffda50abaa11b06bc2 /tests/tls.c | |
| parent | 74adece2303ab7c2b05459c7ff24b362e9660068 (diff) | |
| download | nng-34be2c20a62e94e3a2815dd869609554b3922477.tar.gz nng-34be2c20a62e94e3a2815dd869609554b3922477.tar.bz2 nng-34be2c20a62e94e3a2815dd869609554b3922477.zip | |
Remove the legacy transport registration functions.
This also allows to remove most of the transport headers.
Only zerotier.h sticks around, and only for now. (We expect to
eject it into a separate module.)
Diffstat (limited to 'tests/tls.c')
| -rw-r--r-- | tests/tls.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/tls.c b/tests/tls.c index c3a4a46b..c218a5a6 100644 --- a/tests/tls.c +++ b/tests/tls.c @@ -1,6 +1,6 @@ // // Copyright 2018 Capitar IT Group BV <info@capitar.com> -// Copyright 2022 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -17,7 +17,6 @@ #include <nng/nng.h> #include <nng/protocol/pair1/pair.h> #include <nng/supplemental/tls/tls.h> -#include <nng/transport/tls/tls.h> #include "convey.h" #include "stubs.h" @@ -289,14 +288,10 @@ TestMain("TLS Transport", { trantest_test(&tt); - Convey("We can register the TLS transport", - { So(nng_tls_register() == 0); }); - Convey("We cannot connect to wild cards", { nng_socket s; char addr[NNG_MAXADDRLEN]; - So(nng_tls_register() == 0); So(nng_pair_open(&s) == 0); Reset({ nng_close(s); }); trantest_next_address(addr, "tls+tcp://*:"); @@ -310,7 +305,6 @@ TestMain("TLS Transport", { nng_listener l; nng_dialer d; - So(nng_tls_register() == 0); So(nng_pair_open(&s1) == 0); So(nng_pair_open(&s2) == 0); Reset({ @@ -337,7 +331,6 @@ TestMain("TLS Transport", { nng_dialer d; char *addr; - So(nng_tls_register() == 0); So(nng_pair_open(&s1) == 0); So(nng_pair_open(&s2) == 0); Reset({ @@ -359,7 +352,6 @@ TestMain("TLS Transport", { Convey("Malformed TLS addresses do not panic", { nng_socket s1; - So(nng_tls_register() == 0); So(nng_pair_open(&s1) == 0); Reset({ nng_close(s1); }); |
