[riot-notifications] [RIOT-OS/RIOT] sys: add credman (D)TLS credential management module (#11564)

Aiman Ismail notifications at github.com
Tue May 28 18:16:38 CEST 2019


pokgak commented on this pull request.



> +              credential->tag, credential->type);
+        return CREDMAN_EXIST;
+    }
+    pos = _find_next_free_pos();
+    if (pos < 0) {
+        DEBUG("credman: no space for new credential\n");
+        return CREDMAN_NO_SPACE;
+    }
+
+    credman_credential_t *c = &credentials[pos];
+    c->tag = credential->tag;
+    c->type = credential->type;
+    /* unions only point to one address at a time,
+     * so it doesn't matter which entry in the union
+     * we copied here, as all of them are the same */
+    c->params.psk = credential->params.psk;

Fixed.

-- 
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/11564#discussion_r288188461
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190528/1919522c/attachment-0001.html>


More information about the notifications mailing list