mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-13 20:00:40 +03:00
PKI: Add in PKI wildcard and multiple SANs support
This commit is contained in:
1 parent
ec038499d8
commit
72978e9fc6
8 files changed
+593
-172
No files matched your search
@@ -512,6 +512,17 @@ int coap_dtls_define_issue(coap_define_issue_key_t type,
|
||||
*/
|
||||
int coap_dtls_set_cid_tuple_change(coap_context_t *context, uint8_t every);
|
||||
|
||||
/**
|
||||
* Check if the PKI name entry is a (wildcard) match for the requested SNI.
|
||||
*
|
||||
* @param name_entry The current name entry from the Certificate.
|
||||
* @param name_length The length of the current name entry from the Certificate.
|
||||
* @param sni_match The requested host name in the SNI request.
|
||||
*
|
||||
* @return @c 1 if a match, else @c 0.
|
||||
*/
|
||||
int coap_pki_name_match_sni(const char *name_entry, size_t name_length, const char *sni_match);
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in new issue
Block a user