[riot-notifications] [RIOT-OS/RIOT] sys/credman: add key load functions (#16263)

Leandro Lanzieri notifications at github.com
Sun Apr 4 19:29:16 CEST 2021

@leandrolanzieri commented on this pull request.

> @@ -90,6 +100,246 @@ int credman_add(const credman_credential_t *credential)
     return ret;
+int credman_load_public_key(const uint8_t *buf, size_t buf_len, ecdsa_public_key_t *out)
+    assert(buf);
+    assert(out);
+    int obj_count = der_object_count((uint8_t *)buf, buf_len);
+    if (obj_count < 0) {

I think it's fine to return on `0`, it's not use for us anyways, as the key is malformed in such a case. Will change.

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/20210404/c1a28c40/attachment-0001.htm>

More information about the notifications mailing list