aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/tls
diff options
context:
space:
mode:
authorDave Voutila <voutilad@gmail.com>2021-02-17 15:23:01 -0500
committerGitHub <noreply@github.com>2021-02-17 12:23:01 -0800
commit9d6b24177e1dfdfe967337b708fde06abd629a12 (patch)
treead95fe098d5771b2bb945792dc6fdb130410efe5 /src/supplemental/tls
parentd020adda8f0348d094790618703b8341a26007a3 (diff)
downloadnng-9d6b24177e1dfdfe967337b708fde06abd629a12.tar.gz
nng-9d6b24177e1dfdfe967337b708fde06abd629a12.tar.bz2
nng-9d6b24177e1dfdfe967337b708fde06abd629a12.zip
remove extraneous comment, set conn_init static (#1424)
The comment is an artifact from an old tls_reap function and no longer describes the following function (conn_init). Function conn_init should be marked static.
Diffstat (limited to 'src/supplemental/tls')
-rw-r--r--src/supplemental/tls/mbedtls/tls.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/supplemental/tls/mbedtls/tls.c b/src/supplemental/tls/mbedtls/tls.c
index e378d304..5e61cdd5 100644
--- a/src/supplemental/tls/mbedtls/tls.c
+++ b/src/supplemental/tls/mbedtls/tls.c
@@ -167,9 +167,7 @@ conn_fini(nng_tls_engine_conn *ec)
mbedtls_ssl_free(&ec->ctx);
}
-// The common code should call this only after it has released
-// it's upper layer stuff.
-int
+static int
conn_init(nng_tls_engine_conn *ec, void *tls, nng_tls_engine_config *cfg)
{
int rv;
@@ -556,4 +554,4 @@ nng_tls_engine_fini_mbed(void)
mbedtls_ctr_drbg_free(&rng_ctx);
nni_mtx_fini(&rng_lock);
#endif
-} \ No newline at end of file
+}