summaryrefslogtreecommitdiff
path: root/lib/str.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-08 13:00:16 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-11-20 12:13:26 +0100
commitd753cfdcfc7e5342a38f27dde41cf8eb530b57a3 (patch)
treebccdff920f6b2682db3c279deac939f24d60330a /lib/str.h
parente7785d07443a85ed85347c5413acd5194e026c9e (diff)
downloadgnutls-d753cfdcfc7e5342a38f27dde41cf8eb530b57a3.tar.gz
Added function for UTF-8 normalization based on RFC7613
This introduces gnutls_utf8_password_normalize() and a dependency on libunistring.
Diffstat (limited to 'lib/str.h')
-rw-r--r--lib/str.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/str.h b/lib/str.h
index 5bda483a64..fe9055b3eb 100644
--- a/lib/str.h
+++ b/lib/str.h
@@ -36,6 +36,10 @@
# define N_(String) String
#endif
+#define NORM_INTERNAL 1
+int gnutls_utf8_password_normalize(const uint8_t *password, unsigned password_len,
+ gnutls_datum_t *out, unsigned flags);
+
void _gnutls_str_cpy(char *dest, size_t dest_tot_size, const char *src);
void _gnutls_mem_cpy(char *dest, size_t dest_tot_size, const char *src,
size_t src_size);