Qsmtp  0.30dev
qdns_dane.h
Go to the documentation of this file.
1 
4 #ifndef QDNS_DANE_H
5 #define QDNS_DANE_H
6 
7 #include <stdint.h>
8 #include <sys/types.h>
9 
13 enum tlsa_cu {
19 };
20 
24 enum tlsa_sel {
28 };
29 
33 enum tlsa_mt {
38 };
39 
43 struct daneinfo {
44  unsigned char cert_usage;
45  unsigned char selector;
46  unsigned char matching_type;
47  unsigned char *data;
48  size_t datalen;
49 };
50 
66 extern int dnstlsa(const char *host, const unsigned short port, struct daneinfo **out);
67 
68 #endif /* QDNS_DANE_H */
Definition: qdns_dane.h:18
tlsa_sel
labels for TLSA selector values
Definition: qdns_dane.h:24
Definition: qdns_dane.h:17
Definition: qdns_dane.h:35
Definition: qdns_dane.h:15
int dnstlsa(const char *host, const unsigned short port, struct daneinfo **out)
check for TLSA record of the given host
Definition: qdns_dane.c:145
Definition: qdns_dane.h:14
Definition: qdns_dane.h:16
Definition: qdns_dane.h:34
tlsa_mt
labels for TLSA matching type values
Definition: qdns_dane.h:33
Definition: qdns_dane.h:37
Definition: qdns_dane.h:26
Definition: qdns_dane.h:25
Definition: qdns_dane.h:36
size_t datalen
Definition: qdns_dane.h:48
Definition: qdns_dane.h:27
contents of one DNS DANE record
Definition: qdns_dane.h:43
tlsa_cu
labels for TLSA certificate usage values
Definition: qdns_dane.h:13