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

Aiman Ismail notifications at github.com
Tue May 28 18:25:20 CEST 2019


pokgak commented on this pull request.



> +}
+
+int credman_get_used_count(void)
+{
+    return used;
+}
+
+void credman_init(void)
+{
+    memset(credentials, 0, sizeof(credman_credential_t) * CREDMAN_MAX_CREDENTIALS);
+    used = 0;
+}
+
+static int _find_credential_pos(credman_tag_t tag, credman_type_t type)
+{
+    for (unsigned i = 0; i < used; i++) {

Fixed. Added test case to test this.

-- 
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_r288192254
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190528/5417e17b/attachment-0001.html>


More information about the notifications mailing list