[riot-notifications] [RIOT-OS/RIOT] pkg/wakaama: add DTLS support (#16233)

Leandro Lanzieri notifications at github.com
Tue Sep 21 13:13:01 CEST 2021


@leandrolanzieri commented on this pull request.



> +    instance->security_mode = args->security_mode;
+    instance->is_bootstrap = args->is_bootstrap;
+    instance->client_hold_off_time = args->client_hold_off_time;
+    instance->bs_account_timeout = args->bootstrap_account_timeout;
+
+#if IS_USED(MODULE_WAKAAMA_CLIENT_DTLS)
+    instance->cred_tag = CREDMAN_TAG_EMPTY;
+#endif
+
+    /* copy the URI locally */
+    if (strlen(args->server_uri) > CONFIG_LWM2M_URI_MAX_SIZE - 1) {
+        DEBUG("[lwm2m:security]: can't copy URI, not enough space\n");
+        goto free_out;
+    }
+
+    strcpy(instance->uri, args->server_uri);

Added

-- 
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/16233#discussion_r712936561
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210921/45f61db7/attachment.htm>


More information about the notifications mailing list