xref: /freebsd/contrib/ldns/libdns.vim (revision 0b3105a37d7adcadcb720112fed4dc4e8040be99)
1" Vim syntax file
2" Language:     C libdns
3" Maintainer:   miekg
4" Last change:  2011-09-15
5
6" ldns/util.h
7syn keyword  ldnsMacro LDNS_MALLOC
8syn keyword  ldnsMacro LDNS_XMALLOC
9syn keyword  ldnsMacro LDNS_CALLOC
10syn keyword  ldnsMacro LDNS_REALLOC
11syn keyword  ldnsMacro LDNS_XREALLOC
12syn keyword  ldnsMacro LDNS_FREE
13syn keyword  ldnsMacro LDNS_DEP
14syn keyword  ldnsMacro LDNS_VERSION
15syn keyword  ldnsMacro LDNS_REVISION
16
17" ldns/dname.h
18syn keyword  ldnsMacro          LDNS_DNAME_NORMALIZE
19
20" ldns/tsig.h
21syn keyword  ldnsType           ldns_tsig_credentials
22
23" ldns/update.h
24" --
25
26" ldns/rdata.h
27syn keyword  ldnsType           ldns_rdf
28syn keyword  ldnsType           ldns_rdf_type
29syn keyword  ldnsType           ldns_cert_algorithm
30syn keyword  ldnsConstant	LDNS_RDF_TYPE_NONE
31syn keyword  ldnsConstant	LDNS_RDF_TYPE_DNAME
32syn keyword  ldnsConstant	LDNS_RDF_TYPE_INT8
33syn keyword  ldnsConstant	LDNS_RDF_TYPE_INT16
34syn keyword  ldnsConstant	LDNS_RDF_TYPE_INT16_DATA
35syn keyword  ldnsConstant	LDNS_RDF_TYPE_INT32
36syn keyword  ldnsConstant	LDNS_RDF_TYPE_A
37syn keyword  ldnsConstant	LDNS_RDF_TYPE_AAAA
38syn keyword  ldnsConstant	LDNS_RDF_TYPE_STR
39syn keyword  ldnsConstant	LDNS_RDF_TYPE_APL
40syn keyword  ldnsConstant	LDNS_RDF_TYPE_B32_EXT
41syn keyword  ldnsConstant	LDNS_RDF_TYPE_B64
42syn keyword  ldnsConstant	LDNS_RDF_TYPE_HEX
43syn keyword  ldnsConstant	LDNS_RDF_TYPE_NSEC
44syn keyword  ldnsConstant	LDNS_RDF_TYPE_TYPE
45syn keyword  ldnsConstant	LDNS_RDF_TYPE_CLASS
46syn keyword  ldnsConstant	LDNS_RDF_TYPE_CERT
47syn keyword  ldnsConstant	LDNS_RDF_TYPE_CERT_ALG
48syn keyword  ldnsConstant	LDNS_RDF_TYPE_ALG
49syn keyword  ldnsConstant 	LDNS_RDF_TYPE_UNKNOWN
50syn keyword  ldnsConstant	LDNS_RDF_TYPE_TIME
51syn keyword  ldnsConstant	LDNS_RDF_TYPE_PERIOD
52syn keyword  ldnsConstant	LDNS_RDF_TYPE_TSIGTIME
53syn keyword  ldnsConstant	LDNS_RDF_TYPE_SERVICE
54syn keyword  ldnsConstant	LDNS_RDF_TYPE_LOC
55syn keyword  ldnsConstant	LDNS_RDF_TYPE_WKS
56syn keyword  ldnsConstant	LDNS_RDF_TYPE_NSAP
57syn keyword  ldnsConstant	LDNS_RDF_TYPE_ATMA
58syn keyword  ldnsConstant	LDNS_RDF_TYPE_NSEC3_SALT
59syn keyword  ldnsConstant	LDNS_RDF_TYPE_NSEC3_NEXT_OWNER
60syn keyword  ldnsConstant	LDNS_RDF_TYPE_IPSECKEY
61syn keyword  ldnsConstant	LDNS_RDF_TYPE_TSIG
62syn keyword  ldnsConstant	LDNS_MAX_RDFLEN
63syn keyword  ldnsConstant       LDNS_RDF_SIZE_BYTE
64syn keyword  ldnsConstant       LDNS_RDF_SIZE_WORD
65syn keyword  ldnsConstant       LDNS_RDF_SIZE_DOUBLEWORD
66syn keyword  ldnsConstant       LDNS_RDF_SIZE_6BYTES
67syn keyword  ldnsConstant       LDNS_RDF_SIZE_16BYTES
68syn keyword  ldnsConstant       LDNS_NSEC3_VARS_OPTOUT_MASK
69
70syn keyword  ldnsConstant       LDNS_CERT_PKIX
71syn keyword  ldnsConstant       LDNS_CERT_SPKI
72syn keyword  ldnsConstant       LDNS_CERT_PGP
73syn keyword  ldnsConstant       LDNS_CERT_IPKIX
74syn keyword  ldnsConstant       LDNS_CERT_ISPKI
75syn keyword  ldnsConstant       LDNS_CERT_IPGP
76syn keyword  ldnsConstant       LDNS_CERT_ACPKIX
77syn keyword  ldnsConstant       LDNS_CERT_IACPKIX
78syn keyword  ldnsConstant       LDNS_CERT_URI
79syn keyword  ldnsConstant       LDNS_CERT_OID
80
81" ldns/ldns.h
82syn keyword  ldnsConstant	LDNS_PORT
83syn keyword  ldnsConstant	LDNS_IP4ADDRLEN
84syn keyword  ldnsConstant	LDNS_IP6ADDRLEN
85syn keyword  ldnsConstant	LDNS_ROOT_LABEL_STR
86syn keyword  ldnsConstant	LDNS_DEFAULT_TTL
87
88" ldns/packet.h
89syn keyword  ldnsType           ldns_pkt
90syn keyword  ldnsType           ldns_pkt_section
91syn keyword  ldnsType		ldns_pkt_type
92syn keyword  ldnsType		ldns_pkt_opcode
93syn keyword  ldnsType		ldns_pkt_rcode
94syn keyword  ldnsType		ldns_hdr
95syn keyword  ldnsConstant	LDNS_QR
96syn keyword  ldnsConstant	LDNS_AA
97syn keyword  ldnsConstant	LDNS_TC
98syn keyword  ldnsConstant	LDNS_RD
99syn keyword  ldnsConstant	LDNS_CD
100syn keyword  ldnsConstant	LDNS_RA
101syn keyword  ldnsConstant	LDNS_AD
102syn keyword  ldnsConstant	LDNS_MAX_PACKETLEN
103syn keyword  ldnsConstant	LDNS_PACKET_QUESTION
104syn keyword  ldnsConstant	LDNS_PACKET_REFERRAL
105syn keyword  ldnsConstant	LDNS_PACKET_ANSWER
106syn keyword  ldnsConstant	LDNS_PACKET_NXDOMAIN
107syn keyword  ldnsConstant	LDNS_PACKET_NODATA
108syn keyword  ldnsConstant	LDNS_PACKET_UNKNOWN
109syn keyword  ldnsConstant	LDNS_SECTION_QUESTION
110syn keyword  ldnsConstant	LDNS_SECTION_ANSWER
111syn keyword  ldnsConstant	LDNS_SECTION_AUTHORITY
112syn keyword  ldnsConstant	LDNS_SECTION_ADDITIONAL
113syn keyword  ldnsConstant	LDNS_SECTION_ANY
114syn keyword  ldnsConstant	LDNS_SECTION_ANY_NOQUESTION
115syn keyword  ldnsConstant	LDNS_PACKET_QUERY
116syn keyword  ldnsConstant	LDNS_PACKET_IQUERY
117syn keyword  ldnsConstant	LDNS_PACKET_STATUS
118syn keyword  ldnsConstant	LDNS_PACKET_NOTIFY
119syn keyword  ldnsConstant	LDNS_PACKET_UPDATE
120
121syn keyword  ldnsConstant       LDNS_RCODE_NOERROR
122syn keyword  ldnsConstant       LDNS_RCODE_FORMERR
123syn keyword  ldnsConstant       LDNS_RCODE_SERVFAIL
124syn keyword  ldnsConstant       LDNS_RCODE_NXDOMAIN
125syn keyword  ldnsConstant       LDNS_RCODE_NOTIMPL
126syn keyword  ldnsConstant       LDNS_RCODE_REFUSED
127syn keyword  ldnsConstant       LDNS_RCODE_YXDOMAIN
128syn keyword  ldnsConstant       LDNS_RCODE_YXRRSET
129syn keyword  ldnsConstant       LDNS_RCODE_NXRRSET
130syn keyword  ldnsConstant       LDNS_RCODE_NOTAUTH
131syn keyword  ldnsConstant       LDNS_RCODE_NOTZONE
132
133" dns/error.h
134syn keyword ldnsConstant	LDNS_STATUS_OK
135syn keyword ldnsConstant	LDNS_STATUS_EMPTY_LABEL
136syn keyword ldnsConstant	LDNS_STATUS_LABEL_OVERFLOW
137syn keyword ldnsConstant	LDNS_STATUS_DOMAINNAME_OVERFLOW
138syn keyword ldnsConstant	LDNS_STATUS_DOMAINNAME_UNDERFLOW
139syn keyword ldnsConstant	LDNS_STATUS_DDD_OVERFLOW
140syn keyword ldnsConstant	LDNS_STATUS_PACKET_OVERFLOW
141syn keyword ldnsConstant	LDNS_STATUS_INVALID_POINTER
142syn keyword ldnsConstant	LDNS_STATUS_MEM_ERR
143syn keyword ldnsConstant	LDNS_STATUS_INTERNAL_ERR
144syn keyword ldnsConstant	LDNS_STATUS_SSL_ERR
145syn keyword ldnsConstant	LDNS_STATUS_ERR
146syn keyword ldnsConstant	LDNS_STATUS_INVALID_INT
147syn keyword ldnsConstant	LDNS_STATUS_INVALID_IP4
148syn keyword ldnsConstant	LDNS_STATUS_INVALID_IP6
149syn keyword ldnsConstant	LDNS_STATUS_INVALID_STR
150syn keyword ldnsConstant	LDNS_STATUS_INVALID_B32_EXT
151syn keyword ldnsConstant	LDNS_STATUS_INVALID_B64
152syn keyword ldnsConstant	LDNS_STATUS_INVALID_HEX
153syn keyword ldnsConstant	LDNS_STATUS_INVALID_TIME
154syn keyword ldnsConstant	LDNS_STATUS_NETWORK_ERR
155syn keyword ldnsConstant	LDNS_STATUS_ADDRESS_ERR
156syn keyword ldnsConstant	LDNS_STATUS_FILE_ERR
157syn keyword ldnsConstant	LDNS_STATUS_UNKNOWN_INET
158syn keyword ldnsConstant	LDNS_STATUS_NOT_IMPL
159syn keyword ldnsConstant	LDNS_STATUS_NULL
160syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_UNKNOWN_ALGO
161syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_ALGO_NOT_IMPL
162syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_NO_RRSIG
163syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_NO_DNSKEY
164syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_NO_TRUSTED_DNSKEY
165syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_NO_DS
166syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_NO_TRUSTED_DS
167syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_NO_MATCHING_KEYTAG_DNSKEY
168syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_VALIDATED
169syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_BOGUS
170syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_SIG_EXPIRED
171syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_SIG_NOT_INCEPTED
172syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_TSIG_BOGUS
173syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_TSIG_ERR
174syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_EXPIRATION_BEFORE_INCEPTION
175syn keyword ldnsConstant	LDNS_STATUS_CRYPTO_TYPE_COVERED_ERR
176syn keyword ldnsConstant	LDNS_STATUS_ENGINE_KEY_NOT_LOADED
177syn keyword ldnsConstant	LDNS_STATUS_NSEC3_ERR
178syn keyword ldnsConstant	LDNS_STATUS_RES_NO_NS
179syn keyword ldnsConstant	LDNS_STATUS_RES_QUERY
180syn keyword ldnsConstant	LDNS_STATUS_WIRE_INCOMPLETE_HEADER
181syn keyword ldnsConstant	LDNS_STATUS_WIRE_INCOMPLETE_QUESTION
182syn keyword ldnsConstant	LDNS_STATUS_WIRE_INCOMPLETE_ANSWER
183syn keyword ldnsConstant	LDNS_STATUS_WIRE_INCOMPLETE_AUTHORITY
184syn keyword ldnsConstant	LDNS_STATUS_WIRE_INCOMPLETE_ADDITIONAL
185syn keyword ldnsConstant	LDNS_STATUS_NO_DATA
186syn keyword ldnsConstant	LDNS_STATUS_CERT_BAD_ALGORITHM
187syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_TYPE_ERR
188syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_CLASS_ERR
189syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_TTL_ERR
190syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_INCLUDE_ERR_NOTIMPL
191syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_RDATA_ERR
192syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_DNAME_ERR
193syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_VERSION_ERR
194syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_ALG_ERR
195syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_KEYWORD_ERR
196syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_TTL
197syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_ORIGIN
198syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_INCLUDE
199syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_EMPTY
200syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_ITERATIONS_OVERFLOW
201syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_MISSING_VALUE_ERR
202syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_INTEGER_OVERFLOW
203syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_BAD_ESCAPE
204syn keyword ldnsConstant	LDNS_STATUS_SOCKET_ERROR
205syn keyword ldnsConstant	LDNS_STATUS_SYNTAX_ERR
206syn keyword ldnsConstant	LDNS_STATUS_DNSSEC_EXISTENCE_DENIED
207syn keyword ldnsConstant	LDNS_STATUS_DNSSEC_NSEC_RR_NOT_COVERED
208syn keyword ldnsConstant	LDNS_STATUS_DNSSEC_NSEC_WILDCARD_NOT_COVERED
209syn keyword ldnsConstant	LDNS_STATUS_DNSSEC_NSEC3_ORIGINAL_NOT_FOUND
210syn keyword ldnsConstant	LDNS_STATUS_MISSING_RDATA_FIELDS_RRSIG
211syn keyword ldnsConstant	LDNS_STATUS_MISSING_RDATA_FIELDS_KEY
212
213
214" ldns/resolver.h
215syn keyword  ldnsType	  	ldns_resolver
216syn keyword  ldnsConstant       LDNS_RESOLV_CONF
217syn keyword  ldnsConstant       LDNS_RESOLV_HOSTS
218syn keyword  ldnsConstant       LDNS_RESOLV_KEYWORD
219syn keyword  ldnsConstant       LDNS_RESOLV_DEFDOMAIN
220syn keyword  ldnsConstant       LDNS_RESOLV_NAMESERVER
221syn keyword  ldnsConstant       LDNS_RESOLV_SEARCH
222syn keyword  ldnsConstant       LDNS_RESOLV_SORTLIST
223syn keyword  ldnsConstant       LDNS_RESOLV_OPTIONS
224syn keyword  ldnsConstant       LDNS_RESOLV_ANCHOR
225syn keyword  ldnsConstant       LDNS_RESOLV_KEYWORDS
226syn keyword  ldnsConstant       LDNS_RESOLV_INETANY
227syn keyword  ldnsConstant       LDNS_RESOLV_INET
228syn keyword  ldnsConstant       LDNS_RESOLV_INET6
229syn keyword  ldnsConstant       LDNS_RESOLV_RTT_INF
230syn keyword  ldnsConstant       LDNS_RESOLV_RTT_MIN
231
232" ldns/zone.h
233syn keyword  ldnsType	  	ldns_zone
234
235" ldns/dnssec.h
236syn keyword  ldnsConstant       LDNS_NSEC3_MAX_ITERATIONS
237syn keyword  ldnsConstant       LDNS_DEFAULT_EXP_TIME
238syn keyword  ldnsConstant       LDNS_DNSSEC_KEYPROTO
239syn keyword  ldnsConstant	LDNS_MAX_KEYLEN
240" ldns/dnssec_sign.h
241" --
242" ldns/dnssec_zone.h
243syn keyword  ldnsType           ldns_dnssec_rrs
244syn keyword  ldnsType           ldns_dnssec_rrsets
245syn keyword  ldnsType           ldns_dnssec_name
246syn keyword  ldnsType           ldns_dnssec_zone
247" ldns/dnssec_verify.h
248syn keyword  ldnsType           ldns_dnssec_data_chain
249syn keyword  ldnsType           ldns_dnssec_trust_tree
250
251" ldns/rr.h
252syn keyword  ldnsType	  	ldns_rr_list
253syn keyword  ldnsType           ldns_rr_descriptor
254syn keyword  ldnsType           ldns_rr
255syn keyword  ldnsType           ldns_rr_type
256syn keyword  ldnsType           ldns_rr_class
257syn keyword  ldnsType		ldns_rr_compress
258
259syn keyword  ldnsConstant       LDNS_MAX_LABELLEN
260syn keyword  ldnsConstant       LDNS_MAX_DOMAINLEN
261syn keyword  ldnsConstant       LDNS_RR_COMPRESS
262syn keyword  ldnsConstant       LDNS_RR_NO_COMPRESS
263
264syn keyword  ldnsConstant	LDNS_RR_CLASS_IN
265syn keyword  ldnsConstant	LDNS_RR_CLASS_CH
266syn keyword  ldnsConstant	LDNS_RR_CLASS_HS
267syn keyword  ldnsConstant	LDNS_RR_CLASS_NONE
268syn keyword  ldnsConstant	LDNS_RR_CLASS_ANY
269
270syn keyword ldnsConstant	LDNS_RR_TYPE_A
271syn keyword ldnsConstant	LDNS_RR_TYPE_A6
272syn keyword ldnsConstant	LDNS_RR_TYPE_AAAA
273syn keyword ldnsConstant	LDNS_RR_TYPE_AFSDB
274syn keyword ldnsConstant	LDNS_RR_TYPE_ANY
275syn keyword ldnsConstant	LDNS_RR_TYPE_APL
276syn keyword ldnsConstant	LDNS_RR_TYPE_ATMA
277syn keyword ldnsConstant	LDNS_RR_TYPE_AXFR
278syn keyword ldnsConstant	LDNS_RR_TYPE_CERT
279syn keyword ldnsConstant	LDNS_RR_TYPE_CNAME
280syn keyword ldnsConstant	LDNS_RR_TYPE_COUNT
281syn keyword ldnsConstant	LDNS_RR_TYPE_DHCID
282syn keyword ldnsConstant	LDNS_RR_TYPE_DLV
283syn keyword ldnsConstant	LDNS_RR_TYPE_DNAME
284syn keyword ldnsConstant	LDNS_RR_TYPE_DNSKEY
285syn keyword ldnsConstant	LDNS_RR_TYPE_DS
286syn keyword ldnsConstant	LDNS_RR_TYPE_EID
287syn keyword ldnsConstant	LDNS_RR_TYPE_FIRST
288syn keyword ldnsConstant	LDNS_RR_TYPE_GID
289syn keyword ldnsConstant	LDNS_RR_TYPE_GPOS
290syn keyword ldnsConstant	LDNS_RR_TYPE_HINFO
291syn keyword ldnsConstant	LDNS_RR_TYPE_IPSECKEY
292syn keyword ldnsConstant	LDNS_RR_TYPE_ISDN
293syn keyword ldnsConstant	LDNS_RR_TYPE_IXFR
294syn keyword ldnsConstant	LDNS_RR_TYPE_KEY
295syn keyword ldnsConstant	LDNS_RR_TYPE_KX
296syn keyword ldnsConstant	LDNS_RR_TYPE_LAST
297syn keyword ldnsConstant	LDNS_RR_TYPE_LOC
298syn keyword ldnsConstant	LDNS_RR_TYPE_MAILA
299syn keyword ldnsConstant	LDNS_RR_TYPE_MAILB
300syn keyword ldnsConstant	LDNS_RR_TYPE_MB
301syn keyword ldnsConstant	LDNS_RR_TYPE_MD
302syn keyword ldnsConstant	LDNS_RR_TYPE_MF
303syn keyword ldnsConstant	LDNS_RR_TYPE_MG
304syn keyword ldnsConstant	LDNS_RR_TYPE_MINFO
305syn keyword ldnsConstant	LDNS_RR_TYPE_MR
306syn keyword ldnsConstant	LDNS_RR_TYPE_MX
307syn keyword ldnsConstant	LDNS_RR_TYPE_NAPTR
308syn keyword ldnsConstant	LDNS_RR_TYPE_NIMLOC
309syn keyword ldnsConstant	LDNS_RR_TYPE_NS
310syn keyword ldnsConstant	LDNS_RR_TYPE_NSAP
311syn keyword ldnsConstant	LDNS_RR_TYPE_NSAP_PTR
312syn keyword ldnsConstant	LDNS_RR_TYPE_NSEC
313syn keyword ldnsConstant	LDNS_RR_TYPE_NSEC3
314syn keyword ldnsConstant	LDNS_RR_TYPE_NSEC3
315syn keyword ldnsConstant	LDNS_RR_TYPE_NSEC3PARAM
316syn keyword ldnsConstant	LDNS_RR_TYPE_NSEC3PARAMS
317syn keyword ldnsConstant	LDNS_RR_TYPE_NSEC3PARAMS
318syn keyword ldnsConstant	LDNS_RR_TYPE_NULL
319syn keyword ldnsConstant	LDNS_RR_TYPE_NXT
320syn keyword ldnsConstant	LDNS_RR_TYPE_OPT
321syn keyword ldnsConstant	LDNS_RR_TYPE_PTR
322syn keyword ldnsConstant	LDNS_RR_TYPE_PX
323syn keyword ldnsConstant	LDNS_RR_TYPE_RP
324syn keyword ldnsConstant	LDNS_RR_TYPE_RRSIG
325syn keyword ldnsConstant	LDNS_RR_TYPE_RT
326syn keyword ldnsConstant	LDNS_RR_TYPE_SIG
327syn keyword ldnsConstant	LDNS_RR_TYPE_SINK
328syn keyword ldnsConstant	LDNS_RR_TYPE_SOA
329syn keyword ldnsConstant	LDNS_RR_TYPE_SPF
330syn keyword ldnsConstant	LDNS_RR_TYPE_SRV
331syn keyword ldnsConstant	LDNS_RR_TYPE_SSHFP
332syn keyword ldnsConstant        LDNS_RR_TYPE_TALINK
333syn keyword ldnsConstant	LDNS_RR_TYPE_TSIG
334syn keyword ldnsConstant	LDNS_RR_TYPE_TXT
335syn keyword ldnsConstant	LDNS_RR_TYPE_UID
336syn keyword ldnsConstant	LDNS_RR_TYPE_UINFO
337syn keyword ldnsConstant	LDNS_RR_TYPE_UNSPEC
338syn keyword ldnsConstant	LDNS_RR_TYPE_WKS
339syn keyword ldnsConstant	LDNS_RR_TYPE_X25
340
341" ldns/buffer.h
342syn keyword  ldnsType		ldns_buffer
343syn keyword  ldnsConstant	LDNS_MIN_BUFLEN
344
345" ldns/host2str.h
346syn keyword  ldnsConstant       LDNS_APL_IP4
347syn keyword  ldnsConstant       LDNS_APL_IP6
348syn keyword  ldnsConstant       LDNS_APL_MASK
349syn keyword  ldnsConstant       LDNS_APL_NEGATION
350
351" ldns/keys.h
352syn keyword  ldnsType           ldns_key
353syn keyword  ldnsType           ldns_key_list
354syn keyword  ldnsType           ldns_signing_algorithm
355syn keyword  ldnsType           ldns_hash
356syn keyword  ldnsType           ldns_algorithm
357syn keyword  ldnsConstant       LDNS_KEY_ZONE_KEY
358syn keyword  ldnsConstant       LDNS_KEY_SEP_KEY
359syn keyword  ldnsConstant       LDNS_KEY_REVOKE_KEY
360syn keyword  ldnsConstant       LDNS_SHA1
361syn keyword  ldnsConstant       LDNS_SHA256
362syn keyword  ldnsConstant       LDNS_HASH_GOST
363syn keyword  ldnsConstant       LDNS_SHA384
364
365syn keyword  ldnsConstant       LDNS_SIGN_RSAMD5
366syn keyword  ldnsConstant       LDNS_SIGN_RSASHA1
367syn keyword  ldnsConstant       LDNS_SIGN_DSA
368syn keyword  ldnsConstant       LDNS_SIGN_RSASHA1_NSEC3
369syn keyword  ldnsConstant       LDNS_SIGN_RSASHA256
370syn keyword  ldnsConstant       LDNS_SIGN_RSASHA512
371syn keyword  ldnsConstant       LDNS_SIGN_DSA_NSEC3
372syn keyword  ldnsConstant       LDNS_SIGN_ECC_GOST
373syn keyword  ldnsConstant       LDNS_SIGN_ECDSAP256SHA256
374syn keyword  ldnsConstant       LDNS_SIGN_ECDSAP384SHA384
375syn keyword  ldnsConstant       LDNS_SIGN_HMACMD5
376syn keyword  ldnsConstant       LDNS_SIGN_HMACSHA1
377syn keyword  ldnsConstant       LDNS_SIGN_HMACSHA256
378
379" ldns/wire2host.h
380syn keyword  ldnsMacro          LDNS_WIRE2HOST_H
381syn keyword  ldnsMacro          LDNS_HEADER_SIZE
382syn keyword  ldnsMacro          LDNS_RD_MASK
383syn keyword  ldnsMacro          LDNS_RD_SHIFT
384syn keyword  ldnsMacro          LDNS_RD_WIRE
385syn keyword  ldnsMacro          LDNS_RD_SET
386syn keyword  ldnsMacro          LDNS_RD_CLR
387syn keyword  ldnsMacro          LDNS_TC_MASK
388syn keyword  ldnsMacro          LDNS_TC_SHIFT
389syn keyword  ldnsMacro          LDNS_TC_WIRE
390syn keyword  ldnsMacro          LDNS_TC_SET
391syn keyword  ldnsMacro          LDNS_TC_CLR
392syn keyword  ldnsMacro          LDNS_AA_MASK
393syn keyword  ldnsMacro          LDNS_AA_SHIFT
394syn keyword  ldnsMacro          LDNS_AA_WIRE
395syn keyword  ldnsMacro          LDNS_AA_SET
396syn keyword  ldnsMacro          LDNS_AA_CLR
397syn keyword  ldnsMacro          LDNS_OPCODE_MASK
398syn keyword  ldnsMacro          LDNS_OPCODE_SHIFT
399syn keyword  ldnsMacro          LDNS_OPCODE_WIRE
400syn keyword  ldnsMacro          LDNS_OPCODE_SET
401syn keyword  ldnsMacro          LDNS_QR_MASK
402syn keyword  ldnsMacro          LDNS_QR_SHIFT
403syn keyword  ldnsMacro          LDNS_QR_WIRE
404syn keyword  ldnsMacro          LDNS_QR_SET
405syn keyword  ldnsMacro          LDNS_QR_CLR
406syn keyword  ldnsMacro          LDNS_RCODE_MASK
407syn keyword  ldnsMacro          LDNS_RCODE_SHIFT
408syn keyword  ldnsMacro          LDNS_RCODE_WIRE
409syn keyword  ldnsMacro          LDNS_RCODE_SET
410syn keyword  ldnsMacro          LDNS_CD_MASK
411syn keyword  ldnsMacro          LDNS_CD_SHIFT
412syn keyword  ldnsMacro          LDNS_CD_WIRE
413syn keyword  ldnsMacro          LDNS_CD_SET
414syn keyword  ldnsMacro          LDNS_CD_CLR
415syn keyword  ldnsMacro          LDNS_AD_MASK
416syn keyword  ldnsMacro          LDNS_AD_SHIFT
417syn keyword  ldnsMacro          LDNS_AD_WIRE
418syn keyword  ldnsMacro          LDNS_AD_SET
419syn keyword  ldnsMacro          LDNS_AD_CLR
420syn keyword  ldnsMacro          LDNS_Z_MASK
421syn keyword  ldnsMacro          LDNS_Z_SHIFT
422syn keyword  ldnsMacro          LDNS_Z_WIRE
423syn keyword  ldnsMacro          LDNS_Z_SET
424syn keyword  ldnsMacro          LDNS_Z_CLR
425syn keyword  ldnsMacro          LDNS_RA_MASK
426syn keyword  ldnsMacro          LDNS_RA_SHIFT
427syn keyword  ldnsMacro          LDNS_RA_WIRE
428syn keyword  ldnsMacro          LDNS_RA_SET
429syn keyword  ldnsMacro          LDNS_RA_CLR
430syn keyword  ldnsMacro          LDNS_ID_WIRE
431syn keyword  ldnsMacro          LDNS_ID_SET
432syn keyword  ldnsMacro          LDNS_QDCOUNT_OFF
433syn keyword  ldnsMacro          QDCOUNT
434syn keyword  ldnsMacro          LDNS_QDCOUNT
435syn keyword  ldnsMacro          LDNS_ANCOUNT_OFF
436syn keyword  ldnsMacro          LDNS_ANCOUNT
437syn keyword  ldnsMacro          LDNS_NSCOUNT_OFF
438syn keyword  ldnsMacro          LDNS_NSCOUNT
439syn keyword  ldnsMacro          LDNS_ARCOUNT_OFF
440syn keyword  ldnsMacro          LDNS_ARCOUNT
441
442" ldns/host2wire.h
443" --
444
445" ldns/* -- All functions
446" Created with:
447" Get all the functions that start with 'ldns_'
448" egrep '^[a-z_]+ [*a-z_0-9]+\(' *.h | sed -e 's/(.*$//' | awk '{print $2}' | \
449" sed 's/^\*//' | grep '^ldns' | sort
450" Not included, but could be added...?
451
452" Default highlighting
453command -nargs=+ HiLink hi def link <args>
454HiLink ldnsType                Type
455" Currently no functions are defined
456HiLink ldnsFunction            Function
457HiLink ldnsMacro               Macro
458HiLink ldnsConstant            Constant
459delcommand HiLink
460