Skip to content

Commit 82973b4

Browse files
maxd-nordicrlubos
authored andcommitted
[nrf fromtree] net: lib: tls_credentials: add invalid sec tag value
Add a definition for an invalid secure tag value to be used as a placeholder. Negative values are reserved for internal use, but some of them should be considered valid. To be able to check against a value, we need to define an invalid one. (cherry picked from commit 59a8eeb) Signed-off-by: Maximilian Deubel <[email protected]>
1 parent 139789b commit 82973b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/zephyr/net/tls_credentials.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ enum tls_credential_type {
7777
*/
7878
typedef int sec_tag_t;
7979

80+
#define SEC_TAG_TLS_INVALID (-1) /**< Invalid secure tag value. */
81+
8082
/**
8183
* @brief Add a TLS credential.
8284
*

0 commit comments

Comments
 (0)