[riot-notifications] [RIOT-OS/RIOT] net/sock/dtls: allow using multiple credentials (#16179)

Leandro Lanzieri notifications at github.com
Thu Apr 1 09:49:26 CEST 2021


@leandrolanzieri commented on this pull request.



> + */
+typedef credman_tag_t (*sock_dtls_rpk_cb_t)(sock_dtls_t *sock, sock_udp_ep_t *ep,
+                                            credman_tag_t tags[], unsigned tags_len);
+
+/**
+ * @brief Sets the PSK Identity hint to be sent to clients during handshake.
+ *
+ * This hint is optional. It helps clients to decide which PSK Identity to use.
+ *
+ * @param[in, out] sock The DTLS sock object to set the hint to.
+ * @param[in] hint      PSK Identity hint as NULL-terminated string.
+ *
+ * @retval 0 on success
+ * @retval -1 on error
+ */
+int sock_dtls_set_psk_identity_hint(sock_dtls_t *sock, const char *hint);

I renamed it to `sock_dtls_set_server_psk_id_hint`

-- 
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/16179#discussion_r605446110
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210401/36427424/attachment-0001.htm>


More information about the notifications mailing list