<p></p>
<p><b>@leandrolanzieri</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16263#discussion_r606830544">sys/net/credman/credman.c</a>:</p>
<pre style='color:#555'>> +#if IS_USED(MODULE_CREDMAN_LOAD)
+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) {
+        DEBUG("credman: could not calculate the number of elements within the key\n");
+        return CREDMAN_INVALID;
+    }
+
+    asn1_tree objects[obj_count];
+    asn1_tree pub_key;
+
+    if (der_decode((uint8_t *)buf, buf_len, &pub_key, objects, obj_count) < 0) {
</pre>
<p>I'll add it to the <code>DEBUG</code> message.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16263#discussion_r606830544">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYDJ4MAXZV3UZGIBGM3THCOQHANCNFSM42EC4KEQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYFGGCIR6ZD7DVLFFW3THCOQHA5CNFSM42EC4KE2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEVT4QFA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16263#discussion_r606830544",
"url": "https://github.com/RIOT-OS/RIOT/pull/16263#discussion_r606830544",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>