aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/tls/tls_engine.h
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/tls_engine.h
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/tls_engine.h')
-rw-r--r--src/supplemental/tls/tls_engine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supplemental/tls/tls_engine.h b/src/supplemental/tls/tls_engine.h
index c0e395d5..534e6af2 100644
--- a/src/supplemental/tls/tls_engine.h
+++ b/src/supplemental/tls/tls_engine.h
@@ -268,13 +268,13 @@ extern nng_tls_engine nng_tls_engine_ops;
// accept more data yet), or some other error. On success the count is
// updated with the number of bytes actually sent. The first argument
// is the context structure passed in when starting the engine.
-extern int nng_tls_engine_send(void *, const uint8_t *, size_t *);
+extern nng_err nng_tls_engine_send(void *, const uint8_t *, size_t *);
// nng_tls_engine_recv is called by the engine to receive data over
// the underlying connection. It returns zero on success, NNG_EAGAIN
// if the operation can't be completed yet (there is no data available
// for reading), or some other error. On success the count is updated
// with the number of bytes actually received.
-extern int nng_tls_engine_recv(void *, uint8_t *, size_t *);
+extern nng_err nng_tls_engine_recv(void *, uint8_t *, size_t *);
#endif // NNG_SUPPLEMENTAL_TLS_TLS_ENGINE_H