diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-11-08 13:00:16 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-11-20 12:13:26 +0100 |
commit | d753cfdcfc7e5342a38f27dde41cf8eb530b57a3 (patch) | |
tree | bccdff920f6b2682db3c279deac939f24d60330a /lib/str.h | |
parent | e7785d07443a85ed85347c5413acd5194e026c9e (diff) | |
download | gnutls-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |