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

János Brodbeck notifications at github.com
Fri Jun 4 18:48:13 CEST 2021


@janosbrodbeck commented on this pull request.



> @@ -316,7 +338,16 @@ int gcoap_cli_cmd(int argc, char **argv)
     if (strcmp(argv[1], "info") == 0) {
         uint8_t open_reqs = gcoap_op_state();
 
-        printf("CoAP server is listening on port %u\n", CONFIG_GCOAP_PORT);
+        if (IS_ACTIVE(CONFIG_GCOAP_ENABLE_DTLS)) {
+            printf("CoAP server is listening on port %u\n", CONFIG_GCOAPS_PORT);
+        } else {
+            printf("CoAP server is listening on port %u\n", CONFIG_GCOAP_PORT);
+        }
+#if IS_ACTIVE(CONFIG_GCOAP_ENABLE_DTLS)
+            printf("Connection secured with DTLS\n");
+            printf("Free DTLS session slots: %d/%d\n", dsm_get_num_available_slots(),

Addressed with the newest commits.

-- 
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_r645714786
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210604/4faf7b07/attachment.htm>


More information about the notifications mailing list