diff options
| author | Dave Voutila <voutilad@gmail.com> | 2021-02-17 15:23:01 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-17 12:23:01 -0800 |
| commit | 9d6b24177e1dfdfe967337b708fde06abd629a12 (patch) | |
| tree | ad95fe098d5771b2bb945792dc6fdb130410efe5 /src | |
| parent | d020adda8f0348d094790618703b8341a26007a3 (diff) | |
| download | nng-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')
| -rw-r--r-- | src/supplemental/tls/mbedtls/tls.c | 6 |
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 +} |
