1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/include/net/dtls.h

62 lines
1.3 KiB
C

/*
* Copyright (C) 2019 HAW Hamburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @defgroup net_dtls DTLS
* @ingroup net
* @brief DTLS support in RIOT
* @see <a href="https://tools.ietf.org/html/rfc6347">
* RFC 6347
* </a>
*
* There are two ways of using DTLS in RIOT. First is directly using
* the third party libraries available offering DTLS implementation
* with the pkg system. Supported DTLS implementations are:
*
* - @ref pkg_tinydtls "TinyDTLS"
* - @ref pkg_wolfssl "WolfSSL"
*
* The other way of using DTLS is through the @ref net_sock_dtls
* "DTLS sock API".
*
* For further instructions, please refer to the corresponding page.
*
* @{
*
* @file
* @brief DTLS
*
* @author Aiman Ismail <muhammadaimanbin.ismail@haw-hamburg.de>
*/
#ifndef NET_DTLS_H
#define NET_DTLS_H
#include "modules.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief The maximum number DTLS peers (i.e. sessions)
*/
#ifndef CONFIG_DTLS_PEER_MAX
#if IS_USED(MODULE_GCOAP_DTLS)
#define CONFIG_DTLS_PEER_MAX (2)
#else
#define CONFIG_DTLS_PEER_MAX (1)
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif /* NET_DTLS_H */
/** @} */