29#ifndef NET_GCOAP_DNS_H
30#define NET_GCOAP_DNS_H
51#ifndef CONFIG_GCOAP_DNS_SERVER_URI_LEN
52#define CONFIG_GCOAP_DNS_SERVER_URI_LEN 64U
58#ifndef CONFIG_GCOAP_DNS_CREDS_MAX
59#if IS_USED(MODULE_GCOAP_DTLS) || defined(DOXYGEN)
60#define CONFIG_GCOAP_DNS_CREDS_MAX 1U
62#define CONFIG_GCOAP_DNS_CREDS_MAX 0U
69#ifndef CONFIG_GCOAP_DNS_PDU_BUF_SIZE
70#define CONFIG_GCOAP_DNS_PDU_BUF_SIZE 128U
80#ifndef CONFIG_GCOAP_DNS_BLOCK_SIZE
81#define CONFIG_GCOAP_DNS_BLOCK_SIZE 64U
(D)TLS credentials management module definitions
uint16_t credman_tag_t
Tag of the credential.
credman_type_t
Credential types.
bool gcoap_dns_server_uri_is_set(void)
Checks if the URI for the DoC server is set.
int gcoap_dns_cred_add(credman_credential_t *creds)
Adds a credential for the use with the configured DoC server.
ssize_t gcoap_dns_server_uri_get(char *uri, size_t uri_len)
Gets the URI for the DoC server.
void gcoap_dns_server_proxy_reset(void)
Deletes the proxy URI.
int gcoap_dns_server_proxy_set(const char *proxy)
Sets and checks a proxy URI.
int gcoap_dns_query(const char *domain_name, void *addr_out, int family)
Query a domain name via CoAP synchronously.
int gcoap_dns_server_uri_set(const char *uri)
Sets and checks a URI for a DoC server.
void gcoap_dns_cred_remove(credman_tag_t tag, credman_type_t type)
Remove a credential for the use with the configured DoC server.
ssize_t gcoap_dns_server_proxy_get(char *proxy, size_t proxy_len)
Gets the proxy URI.
bool gcoap_dns_server_proxy_is_set(void)
Checks if a proxy URI is set.
void gcoap_dns_cred_reset(void)
Deletes all added credentials.
Mutex for thread synchronization.
Generic CoAP values as defined by RFC7252.