diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-17 21:00:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-17 21:00:58 +0000 |
commit | 8c4f13e5109054a8f7ad3555b6db51c81eec5e0b (patch) | |
tree | 55aa82541d4c148148bcf50e7c59bfa17ed950ab /src/include/gnunet_dnsparser_lib.h | |
parent | a7a20387006a89cd13fd122e0262dd59957bc6d0 (diff) | |
download | gnunet-8c4f13e5109054a8f7ad3555b6db51c81eec5e0b.tar.gz gnunet-8c4f13e5109054a8f7ad3555b6db51c81eec5e0b.zip |
-adding libidn--towards fixing #2475
Diffstat (limited to 'src/include/gnunet_dnsparser_lib.h')
-rw-r--r-- | src/include/gnunet_dnsparser_lib.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/gnunet_dnsparser_lib.h b/src/include/gnunet_dnsparser_lib.h index 328a2286a..19148bd3d 100644 --- a/src/include/gnunet_dnsparser_lib.h +++ b/src/include/gnunet_dnsparser_lib.h | |||
@@ -479,6 +479,18 @@ struct GNUNET_DNSPARSER_Packet | |||
479 | 479 | ||
480 | 480 | ||
481 | /** | 481 | /** |
482 | * Check if a label in UTF-8 format can be coded into valid IDNA. | ||
483 | * This can fail if the ASCII-conversion becomes longer than 63 characters. | ||
484 | * | ||
485 | * @param label label to check (UTF-8 string) | ||
486 | * @return GNUNET_OK if the label can be converted to IDNA, | ||
487 | * GNUNET_SYSERR if the label is not valid for DNS names | ||
488 | */ | ||
489 | int | ||
490 | GNUNET_DNSPARSER_check_label (const char *label); | ||
491 | |||
492 | |||
493 | /** | ||
482 | * Parse a UDP payload of a DNS packet in to a nice struct for further | 494 | * Parse a UDP payload of a DNS packet in to a nice struct for further |
483 | * processing and manipulation. | 495 | * processing and manipulation. |
484 | * | 496 | * |