From c31b38db46cd677bb574fe66b3154f527b044df2 Mon Sep 17 00:00:00 2001 From: Andreas Moltumyr Date: Wed, 21 Feb 2024 18:44:12 +0100 Subject: [PATCH] nrf_modem: doc: change nrf_errno to errno Change nrf_errno mentions to simply errno when referencing specific errnos for the NRF_SO_SEC_DTLS_CONN_SAVE and NRF_SO_SEC_DTLS_CONN_LOAD socket options. Signed-off-by: Andreas Moltumyr --- nrf_modem/doc/sockets/socket_options_func.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nrf_modem/doc/sockets/socket_options_func.rst b/nrf_modem/doc/sockets/socket_options_func.rst index 156da52c1e..01915a0066 100644 --- a/nrf_modem/doc/sockets/socket_options_func.rst +++ b/nrf_modem/doc/sockets/socket_options_func.rst @@ -342,21 +342,21 @@ NRF_SO_SEC_DTLS_CONN_SAVE Once the DTLS context is saved, the socket can't be used before the DTLS context is loaded with :c:macro:`NRF_SO_SEC_DTLS_CONN_LOAD`. - This option fails with nrf_errno ``NRF_EAGAIN`` if an error happened during serialization of the SSL context. + This option fails with errno ``NRF_EAGAIN`` if an error happened during serialization of the SSL context. This can occur, for instance, when the modem cannot allocate enough memory or if the socket is busy sending or receiving data. In this case, the SSL context is still present in the socket, so data sending is still possible. - The option fails with nrf_errno ``NRF_EINVAL`` if the socket option is not supported with the current configuration, for instance because the DTLS handshake is not completed, + The option fails with errno ``NRF_EINVAL`` if the socket option is not supported with the current configuration, for instance because the DTLS handshake is not completed, the connection is not an DTLS v1.2 connection with renegotiation disabled, or the connection does not use an AEAD cipher suite (AES-CCM or AES-GCM). - The option fails with nrf_errno ``NRF_ENOMEM`` if the amount of saved connections exceeds four. + The option fails with errno ``NRF_ENOMEM`` if the amount of saved connections exceeds four. NRF_SO_SEC_DTLS_CONN_LOAD Load DTLS connection. This option is write-only. The socket option is supported from modem firmware v1.3.x, where x is greater than or equal to 5, and v2.x.x. - This option fails with nrf_errno ``NRF_EAGAIN`` if an error happened during deserialization of the SSL context. + This option fails with errno ``NRF_EAGAIN`` if an error happened during deserialization of the SSL context. This can occur, for instance, when the modem cannot allocate enough memory or the connection is not saved. - The option fails with nrf_errno ``NRF_EINVAL`` if the socket option is not supported with the current configuration. + The option fails with errno ``NRF_EINVAL`` if the socket option is not supported with the current configuration. NRF_SO_SEC_CIPHERSUITE_USED Get chosen TLS cipher suite.