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

Aiman Ismail notifications at github.com
Tue May 28 18:21:58 CEST 2019

pokgak commented on this pull request.

> +               tag, type);
+        return CREDMAN_NOT_FOUND;
+    }
+    memset(&credentials[pos], 0, sizeof(credman_credential_t));
+    used--;
+    return CREDMAN_OK;
+int credman_get_used_count(void)
+    return used;
+void credman_init(void)
+    memset(credentials, 0, sizeof(credman_credential_t) * CREDMAN_MAX_CREDENTIALS);

Just found out that all global and static variables are automatically initialized to zero. So this function is only used for testing. Changed to `credman_reset()`.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190528/a2f7bc98/attachment.html>

More information about the notifications mailing list