diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-03-15 08:42:42 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-03-15 08:42:42 +0100 |
commit | cfd3db44a82330272752ab3da08f1823c9867652 (patch) | |
tree | 1ee581fcb185407b513828e796d4e7441e608c11 /src/include/gnunet_gnsrecord_lib.h | |
parent | aa033d45165394bde735dcd19495fd420f5cd963 (diff) | |
download | gnunet-cfd3db44a82330272752ab3da08f1823c9867652.tar.gz gnunet-cfd3db44a82330272752ab3da08f1823c9867652.zip |
NAMESTORE: Prevent storing records under invalid labels
Diffstat (limited to 'src/include/gnunet_gnsrecord_lib.h')
-rw-r--r-- | src/include/gnunet_gnsrecord_lib.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/gnunet_gnsrecord_lib.h b/src/include/gnunet_gnsrecord_lib.h index 590d83476..51dd5972d 100644 --- a/src/include/gnunet_gnsrecord_lib.h +++ b/src/include/gnunet_gnsrecord_lib.h | |||
@@ -761,6 +761,16 @@ GNUNET_GNSRECORD_convert_records_for_export (const char *label, | |||
761 | struct GNUNET_TIME_Absolute *expiry, | 761 | struct GNUNET_TIME_Absolute *expiry, |
762 | char **emsg); | 762 | char **emsg); |
763 | 763 | ||
764 | /** | ||
765 | * Check label for invalid characters. | ||
766 | * | ||
767 | * @param label the label to check | ||
768 | * @param emsg an error message (NULL if label is valid). Will be allocated. | ||
769 | * @return GNUNET_OK if label is valid. | ||
770 | */ | ||
771 | enum GNUNET_GenericReturnValue | ||
772 | GNUNET_GNSRECORD_label_check (const char*label, char **emsg); | ||
773 | |||
764 | #if 0 /* keep Emacsens' auto-indent happy */ | 774 | #if 0 /* keep Emacsens' auto-indent happy */ |
765 | { | 775 | { |
766 | #endif | 776 | #endif |