aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/tls/wolfssl/wolfssl.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-11-09 09:36:52 -0800
committerGarrett D'Amore <garrett@damore.org>2025-11-10 05:26:05 -0800
commitc9e4b41e109b03ca9ffcf789f8278705451026c7 (patch)
tree335fcfc1218cda1344de8031ea9b352bece525ed /src/supplemental/tls/wolfssl/wolfssl.c
parentfcd1adbb6d4d0307aacdd56034695a6083429163 (diff)
downloadnng-c9e4b41e109b03ca9ffcf789f8278705451026c7.tar.gz
nng-c9e4b41e109b03ca9ffcf789f8278705451026c7.tar.bz2
nng-c9e4b41e109b03ca9ffcf789f8278705451026c7.zip
refactor/dtls: Use message oriented send/receive for DTLS.
The protocol here needs to know and respect message boundaries.
Diffstat (limited to 'src/supplemental/tls/wolfssl/wolfssl.c')
-rw-r--r--src/supplemental/tls/wolfssl/wolfssl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/supplemental/tls/wolfssl/wolfssl.c b/src/supplemental/tls/wolfssl/wolfssl.c
index ef3f7391..5bfaeb61 100644
--- a/src/supplemental/tls/wolfssl/wolfssl.c
+++ b/src/supplemental/tls/wolfssl/wolfssl.c
@@ -114,8 +114,8 @@ tls_log_err(const char *msgid, const char *context, int errnum)
static int
wolf_net_send(WOLFSSL *ssl, char *buf, int len, void *ctx)
{
- size_t sz = len;
- int rv;
+ size_t sz = len;
+ nng_err rv;
(void) ssl;
rv = nng_tls_engine_send(ctx, (const uint8_t *) buf, &sz);
@@ -136,8 +136,8 @@ wolf_net_send(WOLFSSL *ssl, char *buf, int len, void *ctx)
static int
wolf_net_recv(WOLFSSL *ssl, char *buf, int len, void *ctx)
{
- size_t sz = len;
- int rv;
+ size_t sz = len;
+ nng_err rv;
(void) ssl;
rv = nng_tls_engine_recv(ctx, (uint8_t *) buf, &sz);