From 0dd4b6bbdadce749ea7b84caeeb245dd23060c44 Mon Sep 17 00:00:00 2001 From: Ash Date: Thu, 28 Jun 2018 18:51:13 +1000 Subject: [PATCH] include/nsysnet/nssl: Add NSSLDestroyConnection(). --- include/nsysnet/nssl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/nsysnet/nssl.h b/include/nsysnet/nssl.h index 647ae41..53a7683 100644 --- a/include/nsysnet/nssl.h +++ b/include/nsysnet/nssl.h @@ -310,6 +310,7 @@ NSSLAddServerPKI(NSSLContextHandle context, * \sa * - NSSLRead() * - NSSLWrite() + * - NSSLDestroyConnection() * * \if false * meta: kinda guessing socket and options here, needs confirmation @@ -323,6 +324,18 @@ NSSLCreateConnection(NSSLContextHandle context, int32_t socket, int32_t block); +/** + * Close and destroy a NSSL connection. + * + * \param connection + * The connection to destroy. + * + * \returns + * 0 on success or a negative error value. + */ +int32_t +NSSLDestroyConnection(NSSLConnectionHandle connection); + /** * Read data from an open NSSL connection into a given buffer. *