[riot-notifications] [RIOT-OS/RIOT] wolfSSL pkg addition with examples (#10308)

Daniele Lacamera notifications at github.com
Fri Sep 6 08:31:21 CEST 2019


danielinux commented on this pull request.



> +#include <stdlib.h>
+#include <stdio.h>
+
+#include <net/sock.h>
+#include <wolfssl/ssl.h>
+#include <wolfssl/internal.h>
+
+void sock_dtls_close(sock_tls_t *sk)
+{
+    sock_udp_close(&sk->conn.udp);
+}
+
+void sock_dtls_set_endpoint(sock_tls_t *sk, const sock_udp_ep_t *addr)
+{
+    printf("wolfSSL: Setting peer address and port\n");
+    memcpy(&sk->peer_addr, addr, sizeof (sock_udp_ep_t));

Well spotted


-- 
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/10308#discussion_r321592206
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190905/e3d3b486/attachment.htm>


More information about the notifications mailing list