diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-02-28 17:33:35 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-03-02 08:47:33 -0800 |
| commit | 91089a2a60d2a74334fc67757fd23ee1f3ae56d5 (patch) | |
| tree | 75abfed0b81ab63a1281c097fccee74d7857b6c9 /src/supplemental/tls/mbedtls | |
| parent | 04e5a756ba25f79036aa5e03e7412ed5e5539a12 (diff) | |
| download | nng-91089a2a60d2a74334fc67757fd23ee1f3ae56d5.tar.gz nng-91089a2a60d2a74334fc67757fd23ee1f3ae56d5.tar.bz2 nng-91089a2a60d2a74334fc67757fd23ee1f3ae56d5.zip | |
fixes #247 nngcat needs TLS options
While here we also fixed a bug in the --file handling that we noticed
while writing the TLS handling.
We also fixed a warning in the core (msgqueue) for set but unused variables.
Diffstat (limited to 'src/supplemental/tls/mbedtls')
| -rw-r--r-- | src/supplemental/tls/mbedtls/tls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supplemental/tls/mbedtls/tls.c b/src/supplemental/tls/mbedtls/tls.c index 8d934d61..1e008668 100644 --- a/src/supplemental/tls/mbedtls/tls.c +++ b/src/supplemental/tls/mbedtls/tls.c @@ -497,7 +497,7 @@ nni_tls_recv_cb(void *ctx) // The chunk size we accept is 64k at a time, which prevents // ridiculous over queueing. This is always called with the pipe // lock held, and never blocks. -int +static int nni_tls_net_send(void *ctx, const unsigned char *buf, size_t len) { nni_tls *tp = ctx; @@ -605,7 +605,7 @@ nni_tls_sockname(nni_tls *tp, nni_sockaddr *sa) return (nni_plat_tcp_pipe_sockname(tp->tcp, sa)); } -void +static void nni_tls_do_handshake(nni_tls *tp) { int rv; |
