[riot-notifications] [RIOT-OS/RIOT] pkg/tinydtls: add DTLS sock API implementation (#11943)

Martine Lenders notifications at github.com
Wed Sep 25 11:05:46 CEST 2019


miri64 commented on this pull request.



> +#endif
+
+/*
+ *  Default keys examples for tinyDTLS (for RIOT, Linux and Contiki)
+ */
+#ifdef DTLS_PSK
+#define PSK_DEFAULT_IDENTITY "Client_identity"
+#define PSK_DEFAULT_KEY "secretPSK"
+#define PSK_OPTIONS "i:k:"
+#define PSK_ID_MAXLEN 32
+#define PSK_MAXLEN 32
+
+#endif /* DTLS_PSK */
+
+#ifdef DTLS_ECC
+static const unsigned char server_ecdsa_priv_key[] = {

> > Why would it be more complicated? You just need to add `\`s.
> 
> That will need the user to change the file themselves.

The current approach does so as well.

> This uses certificate file converted to hex in a .c file using `xxd -i`, so no more changes to the file are needed.

This = "the approach here" or the WolfSSL approach?

-- 
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/11943#discussion_r328010426
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190925/07369dc2/attachment.htm>


More information about the notifications mailing list