summaryrefslogtreecommitdiff
path: root/lib/str.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/str.h')
-rw-r--r--lib/str.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/str.h b/lib/str.h
index fe9055b3eb..86a35189a0 100644
--- a/lib/str.h
+++ b/lib/str.h
@@ -40,6 +40,9 @@
int gnutls_utf8_password_normalize(const uint8_t *password, unsigned password_len,
gnutls_datum_t *out, unsigned flags);
+#define _gnutls_utf8_password_normalize(p, plen, out) \
+ gnutls_utf8_password_normalize((unsigned char*)p, plen, out, NORM_INTERNAL)
+
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);