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

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


pokgak commented on this pull request.



> +        }
+        break;
+    case CREDMAN_TYPE_ECDSA:
+        if (credential->params.ecdsa == NULL) {
+            DEBUG("credman: no ECDSA credential found\n");
+            return CREDMAN_ERROR;
+        }
+        if ((credential->params.ecdsa->private_key == NULL) ||
+            (credential->params.ecdsa->public_key.x == NULL) ||
+            (credential->params.ecdsa->public_key.y == NULL)) {
+            DEBUG("credman: invalid ECDSA parameters\n");
+            return CREDMAN_ERROR;
+        }
+        break;
+    default:
+        return CREDMAN_ERROR;

Fixed.

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


More information about the notifications mailing list