[riot-notifications] [RIOT-OS/RIOT] net/gcoap: support DTLS (#15549)

János Brodbeck notifications at github.com
Wed May 26 12:47:40 CEST 2021


@janosbrodbeck commented on this pull request.



> @@ -30,6 +30,27 @@
 #define ENABLE_DEBUG 0
 #include "debug.h"
 
+#if IS_ACTIVE(CONFIG_GCOAP_ENABLE_DTLS)
+#include "net/credman.h"
+#include "net/dsm.h"
+#include "tinydtls_keys.h"
+
+#define GCOAP_DTLS_CREDENTIAL_TAG 10

None. It's just a number I used here for the example. Credman does not allow storing multiple credentials with the same tag + type (PSK/RPK). The user would need to avoid same tag numbers in real applications.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15549#discussion_r639610091
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210526/30a6eb80/attachment.htm>


More information about the notifications mailing list