summaryrefslogtreecommitdiff
path: root/src/include/gnunet_dnsparser_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_dnsparser_lib.h')
-rw-r--r--src/include/gnunet_dnsparser_lib.h193
1 files changed, 82 insertions, 111 deletions
diff --git a/src/include/gnunet_dnsparser_lib.h b/src/include/gnunet_dnsparser_lib.h
index 6f81c8e04..bf1869b91 100644
--- a/src/include/gnunet_dnsparser_lib.h
+++ b/src/include/gnunet_dnsparser_lib.h
@@ -92,9 +92,7 @@
92/** 92/**
93 * A DNS query. 93 * A DNS query.
94 */ 94 */
95struct GNUNET_DNSPARSER_Query 95struct GNUNET_DNSPARSER_Query {
96{
97
98 /** 96 /**
99 * Name of the record that the query is for (0-terminated). 97 * Name of the record that the query is for (0-terminated).
100 * In UTF-8 format. The library will convert from and to DNS-IDNA 98 * In UTF-8 format. The library will convert from and to DNS-IDNA
@@ -113,16 +111,13 @@ struct GNUNET_DNSPARSER_Query
113 * See GNUNET_TUN_DNS_CLASS_*. 111 * See GNUNET_TUN_DNS_CLASS_*.
114 */ 112 */
115 uint16_t dns_traffic_class; 113 uint16_t dns_traffic_class;
116
117}; 114};
118 115
119 116
120/** 117/**
121 * Information from MX records (RFC 1035). 118 * Information from MX records (RFC 1035).
122 */ 119 */
123struct GNUNET_DNSPARSER_MxRecord 120struct GNUNET_DNSPARSER_MxRecord {
124{
125
126 /** 121 /**
127 * Preference for this entry (lower value is higher preference). 122 * Preference for this entry (lower value is higher preference).
128 */ 123 */
@@ -136,16 +131,13 @@ struct GNUNET_DNSPARSER_MxRecord
136 * creating the DNS packet will fail. 131 * creating the DNS packet will fail.
137 */ 132 */
138 char *mxhost; 133 char *mxhost;
139
140}; 134};
141 135
142 136
143/** 137/**
144 * Information from SRV records (RFC 2782). 138 * Information from SRV records (RFC 2782).
145 */ 139 */
146struct GNUNET_DNSPARSER_SrvRecord 140struct GNUNET_DNSPARSER_SrvRecord {
147{
148
149 /** 141 /**
150 * Hostname offering the service. 142 * Hostname offering the service.
151 * In UTF-8 format. The library will convert from and to DNS-IDNA 143 * In UTF-8 format. The library will convert from and to DNS-IDNA
@@ -173,15 +165,13 @@ struct GNUNET_DNSPARSER_SrvRecord
173 * TCP or UDP port of the service. 165 * TCP or UDP port of the service.
174 */ 166 */
175 uint16_t port; 167 uint16_t port;
176
177}; 168};
178 169
179 170
180/** 171/**
181 * DNS CERT types as defined in RFC 4398. 172 * DNS CERT types as defined in RFC 4398.
182 */ 173 */
183enum GNUNET_DNSPARSER_CertType 174enum GNUNET_DNSPARSER_CertType {
184{
185 /** 175 /**
186 * Reserved value 176 * Reserved value
187 */ 177 */
@@ -233,8 +223,7 @@ enum GNUNET_DNSPARSER_CertType
233 * DNSCERT algorithms as defined in http://www.iana.org/assignments/ 223 * DNSCERT algorithms as defined in http://www.iana.org/assignments/
234 * dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml, under dns-sec-alg-numbers-1 224 * dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml, under dns-sec-alg-numbers-1
235 */ 225 */
236enum GNUNET_DNSPARSER_CertAlgorithm 226enum GNUNET_DNSPARSER_CertAlgorithm {
237{
238 /** 227 /**
239 * No defined 228 * No defined
240 */ 229 */
@@ -304,16 +293,13 @@ enum GNUNET_DNSPARSER_CertAlgorithm
304 * ECDSA Curve P-384/SHA384 293 * ECDSA Curve P-384/SHA384
305 */ 294 */
306 GNUNET_DNSPARSER_CERTALGO_ECDSA_P384SHA384 = 14 295 GNUNET_DNSPARSER_CERTALGO_ECDSA_P384SHA384 = 14
307
308}; 296};
309 297
310 298
311/** 299/**
312 * Information from CERT records (RFC 4034). 300 * Information from CERT records (RFC 4034).
313 */ 301 */
314struct GNUNET_DNSPARSER_CertRecord 302struct GNUNET_DNSPARSER_CertRecord {
315{
316
317 /** 303 /**
318 * Certificate type 304 * Certificate type
319 */ 305 */
@@ -338,16 +324,13 @@ struct GNUNET_DNSPARSER_CertRecord
338 * Data of the certificate. 324 * Data of the certificate.
339 */ 325 */
340 char *certificate_data; 326 char *certificate_data;
341
342}; 327};
343 328
344 329
345/** 330/**
346 * Information from SOA records (RFC 1035). 331 * Information from SOA records (RFC 1035).
347 */ 332 */
348struct GNUNET_DNSPARSER_SoaRecord 333struct GNUNET_DNSPARSER_SoaRecord {
349{
350
351 /** 334 /**
352 * The domainname of the name server that was the 335 * The domainname of the name server that was the
353 * original or primary source of data for this zone. 336 * original or primary source of data for this zone.
@@ -395,7 +378,6 @@ struct GNUNET_DNSPARSER_SoaRecord
395 * from this zone. 378 * from this zone.
396 */ 379 */
397 uint32_t minimum_ttl; 380 uint32_t minimum_ttl;
398
399}; 381};
400 382
401 383
@@ -404,8 +386,7 @@ struct GNUNET_DNSPARSER_SoaRecord
404 * The tag is followed by the tag_len. 386 * The tag is followed by the tag_len.
405 * The value is followed by the tag for (d - tag_len - 2) bytes 387 * The value is followed by the tag for (d - tag_len - 2) bytes
406 */ 388 */
407struct GNUNET_DNSPARSER_CaaRecord 389struct GNUNET_DNSPARSER_CaaRecord {
408{
409 /** 390 /**
410 * The flags of the CAA record. 391 * The flags of the CAA record.
411 */ 392 */
@@ -422,9 +403,7 @@ struct GNUNET_DNSPARSER_CaaRecord
422/** 403/**
423 * Binary record information (unparsed). 404 * Binary record information (unparsed).
424 */ 405 */
425struct GNUNET_DNSPARSER_RawRecord 406struct GNUNET_DNSPARSER_RawRecord {
426{
427
428 /** 407 /**
429 * Binary record data. 408 * Binary record data.
430 */ 409 */
@@ -440,9 +419,7 @@ struct GNUNET_DNSPARSER_RawRecord
440/** 419/**
441 * A DNS response record. 420 * A DNS response record.
442 */ 421 */
443struct GNUNET_DNSPARSER_Record 422struct GNUNET_DNSPARSER_Record {
444{
445
446 /** 423 /**
447 * Name of the record that the query is for (0-terminated). 424 * Name of the record that the query is for (0-terminated).
448 * In UTF-8 format. The library will convert from and to DNS-IDNA 425 * In UTF-8 format. The library will convert from and to DNS-IDNA
@@ -455,9 +432,7 @@ struct GNUNET_DNSPARSER_Record
455 /** 432 /**
456 * Payload of the record (which one of these is valid depends on the 'type'). 433 * Payload of the record (which one of these is valid depends on the 'type').
457 */ 434 */
458 union 435 union {
459 {
460
461 /** 436 /**
462 * For NS, CNAME and PTR records, this is the uncompressed 0-terminated hostname. 437 * For NS, CNAME and PTR records, this is the uncompressed 0-terminated hostname.
463 * In UTF-8 format. The library will convert from and to DNS-IDNA 438 * In UTF-8 format. The library will convert from and to DNS-IDNA
@@ -491,7 +466,6 @@ struct GNUNET_DNSPARSER_Record
491 * Raw data for all other types. 466 * Raw data for all other types.
492 */ 467 */
493 struct GNUNET_DNSPARSER_RawRecord raw; 468 struct GNUNET_DNSPARSER_RawRecord raw;
494
495 } data; 469 } data;
496 470
497 471
@@ -509,15 +483,13 @@ struct GNUNET_DNSPARSER_Record
509 * See GNUNET_TUN_DNS_CLASS_*. 483 * See GNUNET_TUN_DNS_CLASS_*.
510 */ 484 */
511 uint16_t dns_traffic_class; 485 uint16_t dns_traffic_class;
512
513}; 486};
514 487
515 488
516/** 489/**
517 * Easy-to-process, parsed version of a DNS packet. 490 * Easy-to-process, parsed version of a DNS packet.
518 */ 491 */
519struct GNUNET_DNSPARSER_Packet 492struct GNUNET_DNSPARSER_Packet {
520{
521 /** 493 /**
522 * Array of all queries in the packet, must contain "num_queries" entries. 494 * Array of all queries in the packet, must contain "num_queries" entries.
523 */ 495 */
@@ -567,7 +539,6 @@ struct GNUNET_DNSPARSER_Packet
567 * DNS ID (to match replies to requests). 539 * DNS ID (to match replies to requests).
568 */ 540 */
569 uint16_t id; 541 uint16_t id;
570
571}; 542};
572 543
573 544
@@ -580,7 +551,7 @@ struct GNUNET_DNSPARSER_Packet
580 * #GNUNET_SYSERR if the label is not valid for DNS names 551 * #GNUNET_SYSERR if the label is not valid for DNS names
581 */ 552 */
582int 553int
583GNUNET_DNSPARSER_check_label (const char *label); 554GNUNET_DNSPARSER_check_label(const char *label);
584 555
585 556
586/** 557/**
@@ -593,7 +564,7 @@ GNUNET_DNSPARSER_check_label (const char *label);
593 * #GNUNET_SYSERR if the label is not valid for DNS names 564 * #GNUNET_SYSERR if the label is not valid for DNS names
594 */ 565 */
595int 566int
596GNUNET_DNSPARSER_check_name (const char *name); 567GNUNET_DNSPARSER_check_name(const char *name);
597 568
598 569
599/** 570/**
@@ -605,8 +576,8 @@ GNUNET_DNSPARSER_check_name (const char *name);
605 * @return NULL on error, otherwise the parsed packet 576 * @return NULL on error, otherwise the parsed packet
606 */ 577 */
607struct GNUNET_DNSPARSER_Packet * 578struct GNUNET_DNSPARSER_Packet *
608GNUNET_DNSPARSER_parse (const char *udp_payload, 579GNUNET_DNSPARSER_parse(const char *udp_payload,
609 size_t udp_payload_length); 580 size_t udp_payload_length);
610 581
611 582
612/** 583/**
@@ -615,7 +586,7 @@ GNUNET_DNSPARSER_parse (const char *udp_payload,
615 * @param p packet to free 586 * @param p packet to free
616 */ 587 */
617void 588void
618GNUNET_DNSPARSER_free_packet (struct GNUNET_DNSPARSER_Packet *p); 589GNUNET_DNSPARSER_free_packet(struct GNUNET_DNSPARSER_Packet *p);
619 590
620 591
621/** 592/**
@@ -633,10 +604,10 @@ GNUNET_DNSPARSER_free_packet (struct GNUNET_DNSPARSER_Packet *p);
633 * #GNUNET_OK if @a p was packed completely into @a buf 604 * #GNUNET_OK if @a p was packed completely into @a buf
634 */ 605 */
635int 606int
636GNUNET_DNSPARSER_pack (const struct GNUNET_DNSPARSER_Packet *p, 607GNUNET_DNSPARSER_pack(const struct GNUNET_DNSPARSER_Packet *p,
637 uint16_t max, 608 uint16_t max,
638 char **buf, 609 char **buf,
639 size_t *buf_length); 610 size_t *buf_length);
640 611
641/* ***************** low-level packing API ******************** */ 612/* ***************** low-level packing API ******************** */
642 613
@@ -654,10 +625,10 @@ GNUNET_DNSPARSER_pack (const struct GNUNET_DNSPARSER_Packet *p,
654 * #GNUNET_OK if @a name was added to @a dst 625 * #GNUNET_OK if @a name was added to @a dst
655 */ 626 */
656int 627int
657GNUNET_DNSPARSER_builder_add_name (char *dst, 628GNUNET_DNSPARSER_builder_add_name(char *dst,
658 size_t dst_len, 629 size_t dst_len,
659 size_t *off, 630 size_t *off,
660 const char *name); 631 const char *name);
661 632
662 633
663/** 634/**
@@ -673,10 +644,10 @@ GNUNET_DNSPARSER_builder_add_name (char *dst,
673 * #GNUNET_OK if @a query was added to @a dst 644 * #GNUNET_OK if @a query was added to @a dst
674 */ 645 */
675int 646int
676GNUNET_DNSPARSER_builder_add_query (char *dst, 647GNUNET_DNSPARSER_builder_add_query(char *dst,
677 size_t dst_len, 648 size_t dst_len,
678 size_t *off, 649 size_t *off,
679 const struct GNUNET_DNSPARSER_Query *query); 650 const struct GNUNET_DNSPARSER_Query *query);
680 651
681 652
682/** 653/**
@@ -692,10 +663,10 @@ GNUNET_DNSPARSER_builder_add_query (char *dst,
692 * #GNUNET_OK if @a mx was added to @a dst 663 * #GNUNET_OK if @a mx was added to @a dst
693 */ 664 */
694int 665int
695GNUNET_DNSPARSER_builder_add_mx (char *dst, 666GNUNET_DNSPARSER_builder_add_mx(char *dst,
696 size_t dst_len, 667 size_t dst_len,
697 size_t *off, 668 size_t *off,
698 const struct GNUNET_DNSPARSER_MxRecord *mx); 669 const struct GNUNET_DNSPARSER_MxRecord *mx);
699 670
700 671
701/** 672/**
@@ -711,10 +682,10 @@ GNUNET_DNSPARSER_builder_add_mx (char *dst,
711 * #GNUNET_OK if @a soa was added to @a dst 682 * #GNUNET_OK if @a soa was added to @a dst
712 */ 683 */
713int 684int
714GNUNET_DNSPARSER_builder_add_soa (char *dst, 685GNUNET_DNSPARSER_builder_add_soa(char *dst,
715 size_t dst_len, 686 size_t dst_len,
716 size_t *off, 687 size_t *off,
717 const struct GNUNET_DNSPARSER_SoaRecord *soa); 688 const struct GNUNET_DNSPARSER_SoaRecord *soa);
718 689
719 690
720/** 691/**
@@ -730,10 +701,10 @@ GNUNET_DNSPARSER_builder_add_soa (char *dst,
730 * #GNUNET_OK if @a soa was added to @a dst 701 * #GNUNET_OK if @a soa was added to @a dst
731 */ 702 */
732int 703int
733GNUNET_DNSPARSER_builder_add_cert (char *dst, 704GNUNET_DNSPARSER_builder_add_cert(char *dst,
734 size_t dst_len, 705 size_t dst_len,
735 size_t *off, 706 size_t *off,
736 const struct GNUNET_DNSPARSER_CertRecord *cert); 707 const struct GNUNET_DNSPARSER_CertRecord *cert);
737 708
738 709
739/** 710/**
@@ -749,10 +720,10 @@ GNUNET_DNSPARSER_builder_add_cert (char *dst,
749 * #GNUNET_OK if @a srv was added to @a dst 720 * #GNUNET_OK if @a srv was added to @a dst
750 */ 721 */
751int 722int
752GNUNET_DNSPARSER_builder_add_srv (char *dst, 723GNUNET_DNSPARSER_builder_add_srv(char *dst,
753 size_t dst_len, 724 size_t dst_len,
754 size_t *off, 725 size_t *off,
755 const struct GNUNET_DNSPARSER_SrvRecord *srv); 726 const struct GNUNET_DNSPARSER_SrvRecord *srv);
756 727
757/* ***************** low-level parsing API ******************** */ 728/* ***************** low-level parsing API ******************** */
758 729
@@ -767,10 +738,10 @@ GNUNET_DNSPARSER_builder_add_srv (char *dst,
767 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the record is malformed 738 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the record is malformed
768 */ 739 */
769int 740int
770GNUNET_DNSPARSER_parse_record (const char *udp_payload, 741GNUNET_DNSPARSER_parse_record(const char *udp_payload,
771 size_t udp_payload_length, 742 size_t udp_payload_length,
772 size_t *off, 743 size_t *off,
773 struct GNUNET_DNSPARSER_Record *r); 744 struct GNUNET_DNSPARSER_Record *r);
774 745
775 746
776/** 747/**
@@ -783,9 +754,9 @@ GNUNET_DNSPARSER_parse_record (const char *udp_payload,
783 * @return name as 0-terminated C string on success, NULL if the payload is malformed 754 * @return name as 0-terminated C string on success, NULL if the payload is malformed
784 */ 755 */
785char * 756char *
786GNUNET_DNSPARSER_parse_name (const char *udp_payload, 757GNUNET_DNSPARSER_parse_name(const char *udp_payload,
787 size_t udp_payload_length, 758 size_t udp_payload_length,
788 size_t *off); 759 size_t *off);
789 760
790 761
791/** 762/**
@@ -799,10 +770,10 @@ GNUNET_DNSPARSER_parse_name (const char *udp_payload,
799 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the query is malformed 770 * @return #GNUNET_OK on success, #GNUNET_SYSERR if the query is malformed
800 */ 771 */
801int 772int
802GNUNET_DNSPARSER_parse_query (const char *udp_payload, 773GNUNET_DNSPARSER_parse_query(const char *udp_payload,
803 size_t udp_payload_length, 774 size_t udp_payload_length,
804 size_t *off, 775 size_t *off,
805 struct GNUNET_DNSPARSER_Query *q); 776 struct GNUNET_DNSPARSER_Query *q);
806 777
807 778
808/** 779/**
@@ -815,9 +786,9 @@ GNUNET_DNSPARSER_parse_query (const char *udp_payload,
815 * @return the parsed SOA record, NULL on error 786 * @return the parsed SOA record, NULL on error
816 */ 787 */
817struct GNUNET_DNSPARSER_SoaRecord * 788struct GNUNET_DNSPARSER_SoaRecord *
818GNUNET_DNSPARSER_parse_soa (const char *udp_payload, 789GNUNET_DNSPARSER_parse_soa(const char *udp_payload,
819 size_t udp_payload_length, 790 size_t udp_payload_length,
820 size_t *off); 791 size_t *off);
821 792
822 793
823/** 794/**
@@ -830,9 +801,9 @@ GNUNET_DNSPARSER_parse_soa (const char *udp_payload,
830 * @return the parsed CERT record, NULL on error 801 * @return the parsed CERT record, NULL on error
831 */ 802 */
832struct GNUNET_DNSPARSER_CertRecord * 803struct GNUNET_DNSPARSER_CertRecord *
833GNUNET_DNSPARSER_parse_cert (const char *udp_payload, 804GNUNET_DNSPARSER_parse_cert(const char *udp_payload,
834 size_t udp_payload_length, 805 size_t udp_payload_length,
835 size_t *off); 806 size_t *off);
836 807
837 808
838/** 809/**
@@ -845,9 +816,9 @@ GNUNET_DNSPARSER_parse_cert (const char *udp_payload,
845 * @return the parsed MX record, NULL on error 816 * @return the parsed MX record, NULL on error
846 */ 817 */
847struct GNUNET_DNSPARSER_MxRecord * 818struct GNUNET_DNSPARSER_MxRecord *
848GNUNET_DNSPARSER_parse_mx (const char *udp_payload, 819GNUNET_DNSPARSER_parse_mx(const char *udp_payload,
849 size_t udp_payload_length, 820 size_t udp_payload_length,
850 size_t *off); 821 size_t *off);
851 822
852 823
853/** 824/**
@@ -860,9 +831,9 @@ GNUNET_DNSPARSER_parse_mx (const char *udp_payload,
860 * @return the parsed SRV record, NULL on error 831 * @return the parsed SRV record, NULL on error
861 */ 832 */
862struct GNUNET_DNSPARSER_SrvRecord * 833struct GNUNET_DNSPARSER_SrvRecord *
863GNUNET_DNSPARSER_parse_srv (const char *udp_payload, 834GNUNET_DNSPARSER_parse_srv(const char *udp_payload,
864 size_t udp_payload_length, 835 size_t udp_payload_length,
865 size_t *off); 836 size_t *off);
866 837
867/* ***************** low-level duplication API ******************** */ 838/* ***************** low-level duplication API ******************** */
868 839
@@ -873,7 +844,7 @@ GNUNET_DNSPARSER_parse_srv (const char *udp_payload,
873 * @return the newly allocated record 844 * @return the newly allocated record
874 */ 845 */
875struct GNUNET_DNSPARSER_Record * 846struct GNUNET_DNSPARSER_Record *
876GNUNET_DNSPARSER_duplicate_record (const struct GNUNET_DNSPARSER_Record *r); 847GNUNET_DNSPARSER_duplicate_record(const struct GNUNET_DNSPARSER_Record *r);
877 848
878 849
879/** 850/**
@@ -883,7 +854,7 @@ GNUNET_DNSPARSER_duplicate_record (const struct GNUNET_DNSPARSER_Record *r);
883 * @return the newly allocated record 854 * @return the newly allocated record
884 */ 855 */
885struct GNUNET_DNSPARSER_SoaRecord * 856struct GNUNET_DNSPARSER_SoaRecord *
886GNUNET_DNSPARSER_duplicate_soa_record (const struct GNUNET_DNSPARSER_SoaRecord *r); 857GNUNET_DNSPARSER_duplicate_soa_record(const struct GNUNET_DNSPARSER_SoaRecord *r);
887 858
888 859
889/** 860/**
@@ -893,7 +864,7 @@ GNUNET_DNSPARSER_duplicate_soa_record (const struct GNUNET_DNSPARSER_SoaRecord *
893 * @return the newly allocated record 864 * @return the newly allocated record
894 */ 865 */
895struct GNUNET_DNSPARSER_CertRecord * 866struct GNUNET_DNSPARSER_CertRecord *
896GNUNET_DNSPARSER_duplicate_cert_record (const struct GNUNET_DNSPARSER_CertRecord *r); 867GNUNET_DNSPARSER_duplicate_cert_record(const struct GNUNET_DNSPARSER_CertRecord *r);
897 868
898 869
899/** 870/**
@@ -903,7 +874,7 @@ GNUNET_DNSPARSER_duplicate_cert_record (const struct GNUNET_DNSPARSER_CertRecord
903 * @return the newly allocated record 874 * @return the newly allocated record
904 */ 875 */
905struct GNUNET_DNSPARSER_MxRecord * 876struct GNUNET_DNSPARSER_MxRecord *
906GNUNET_DNSPARSER_duplicate_mx_record (const struct GNUNET_DNSPARSER_MxRecord *r); 877GNUNET_DNSPARSER_duplicate_mx_record(const struct GNUNET_DNSPARSER_MxRecord *r);
907 878
908 879
909/** 880/**
@@ -913,7 +884,7 @@ GNUNET_DNSPARSER_duplicate_mx_record (const struct GNUNET_DNSPARSER_MxRecord *r)
913 * @return the newly allocated record 884 * @return the newly allocated record
914 */ 885 */
915struct GNUNET_DNSPARSER_SrvRecord * 886struct GNUNET_DNSPARSER_SrvRecord *
916GNUNET_DNSPARSER_duplicate_srv_record (const struct GNUNET_DNSPARSER_SrvRecord *r); 887GNUNET_DNSPARSER_duplicate_srv_record(const struct GNUNET_DNSPARSER_SrvRecord *r);
917 888
918 889
919/* ***************** low-level deallocation API ******************** */ 890/* ***************** low-level deallocation API ******************** */
@@ -924,7 +895,7 @@ GNUNET_DNSPARSER_duplicate_srv_record (const struct GNUNET_DNSPARSER_SrvRecord *
924 * @param r record to free 895 * @param r record to free
925 */ 896 */
926void 897void
927GNUNET_DNSPARSER_free_record (struct GNUNET_DNSPARSER_Record *r); 898GNUNET_DNSPARSER_free_record(struct GNUNET_DNSPARSER_Record *r);
928 899
929 900
930/** 901/**
@@ -933,7 +904,7 @@ GNUNET_DNSPARSER_free_record (struct GNUNET_DNSPARSER_Record *r);
933 * @param mx record to free 904 * @param mx record to free
934 */ 905 */
935void 906void
936GNUNET_DNSPARSER_free_mx (struct GNUNET_DNSPARSER_MxRecord *mx); 907GNUNET_DNSPARSER_free_mx(struct GNUNET_DNSPARSER_MxRecord *mx);
937 908
938 909
939/** 910/**
@@ -942,7 +913,7 @@ GNUNET_DNSPARSER_free_mx (struct GNUNET_DNSPARSER_MxRecord *mx);
942 * @param srv record to free 913 * @param srv record to free
943 */ 914 */
944void 915void
945GNUNET_DNSPARSER_free_srv (struct GNUNET_DNSPARSER_SrvRecord *srv); 916GNUNET_DNSPARSER_free_srv(struct GNUNET_DNSPARSER_SrvRecord *srv);
946 917
947 918
948/** 919/**
@@ -951,7 +922,7 @@ GNUNET_DNSPARSER_free_srv (struct GNUNET_DNSPARSER_SrvRecord *srv);
951 * @param soa record to free 922 * @param soa record to free
952 */ 923 */
953void 924void
954GNUNET_DNSPARSER_free_soa (struct GNUNET_DNSPARSER_SoaRecord *soa); 925GNUNET_DNSPARSER_free_soa(struct GNUNET_DNSPARSER_SoaRecord *soa);
955 926
956 927
957/** 928/**
@@ -960,7 +931,7 @@ GNUNET_DNSPARSER_free_soa (struct GNUNET_DNSPARSER_SoaRecord *soa);
960 * @param cert record to free 931 * @param cert record to free
961 */ 932 */
962void 933void
963GNUNET_DNSPARSER_free_cert (struct GNUNET_DNSPARSER_CertRecord *cert); 934GNUNET_DNSPARSER_free_cert(struct GNUNET_DNSPARSER_CertRecord *cert);
964 935
965 936
966/** 937/**
@@ -971,8 +942,8 @@ GNUNET_DNSPARSER_free_cert (struct GNUNET_DNSPARSER_CertRecord *cert);
971 * @return HEX string (lower case) 942 * @return HEX string (lower case)
972 */ 943 */
973char * 944char *
974GNUNET_DNSPARSER_bin_to_hex (const void *data, 945GNUNET_DNSPARSER_bin_to_hex(const void *data,
975 size_t data_size); 946 size_t data_size);
976 947
977 948
978/** 949/**
@@ -984,8 +955,8 @@ GNUNET_DNSPARSER_bin_to_hex (const void *data,
984 * @return number of bytes written to data 955 * @return number of bytes written to data
985 */ 956 */
986size_t 957size_t
987GNUNET_DNSPARSER_hex_to_bin (const char *hex, 958GNUNET_DNSPARSER_hex_to_bin(const char *hex,
988 void *data); 959 void *data);
989 960
990 961
991#endif 962#endif