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

Martine Lenders notifications at github.com
Thu Jul 18 11:25:56 CEST 2019


miri64 commented on this pull request.



> +    memcpy(credential, &credentials[pos], sizeof(credman_credential_t));
+    ret = CREDMAN_OK;
+end:
+    mutex_unlock(&_mutex);
+    return ret;
+}
+
+int credman_delete(credman_tag_t tag, credman_type_t type)
+{
+    mutex_lock(&_mutex);
+    int ret = CREDMAN_ERROR;
+    int pos = _find_credential_pos(tag, type);
+    if (pos < 0) {
+        DEBUG("credman: credential with tag %d and type %d not found\n",
+               tag, type);
+        ret = CREDMAN_NOT_FOUND;

:+1:

-- 
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_r304820424
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190718/59674a19/attachment-0001.htm>


More information about the notifications mailing list