Coverage Report

Created: 2026-07-16 07:09

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/dovecot/src/lib-dns/dns-util.h
Line
Count
Source
1
#ifndef DNS_UTIL_H
2
#define DNS_UTIL_H 1
3
4
static inline char
5
dns_tolower(char c)
6
0
{
7
0
  if (c >= 'A' && c <= 'Z')
8
0
    c+='a'-'A';
9
0
  return c;
10
0
}
Unexecuted instantiation: settings.c:dns_tolower
Unexecuted instantiation: dns-util.c:dns_tolower
11
12
/**
13
 * Will compare names in accordance with RFC4343
14
 */
15
int dns_compare(const char *a, const char *b) ATTR_PURE;
16
int dns_ncompare(const char *a, const char *b, size_t n) ATTR_PURE;
17
18
/**
19
 * Same as above but done by labels from right to left
20
 *
21
 * www.example.org and www.example.net would be compared as
22
 * org = net (return first difference)
23
 * example = example
24
 * www = www
25
 */
26
int dns_compare_labels(const char *a, const char *b) ATTR_PURE;
27
28
/**
29
 * Will match names in RFC4592 style
30
 *
31
 * this means *.foo.bar will match name.foo.bar
32
 * but *DOES NOT* match something.name.foo.bar
33
 */
34
int dns_match_wildcard(const char *name, const char *mask) ATTR_PURE;
35
36
#endif