summaryrefslogtreecommitdiff
path: root/sql/password.c
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2005-09-16 10:24:37 +0500
committerunknown <bar@mysql.com>2005-09-16 10:24:37 +0500
commit149b3761f26080afa7cfb3d289cc30b47918943e (patch)
tree0ba6bac6fd72f07908ee95a39ef2031d8ea4080a /sql/password.c
parent97bea9092e7e2834e8b81899ff085280647587d7 (diff)
downloadmariadb-git-149b3761f26080afa7cfb3d289cc30b47918943e.tar.gz
Bug#10504
Character set does not support traditional mode ctype_utf8.result, ctype_utf8.test: adding test case. password.c, mysql_com.h Changeing octet2hex availability from static to public. item_strfunc.cc: Result string is now checked to be well-formed. Warning/error is generated, depending on sql_mode. include/mysql_com.h: Bug#10504 Character set does not support traditional mode Changeing octet2hex from static to public. sql/item_strfunc.cc: Result string is now checked to be well-formed. Warning/error is generated, depending on sql_mode. sql/password.c: Changeing octet2hex from static to public. mysql-test/t/ctype_utf8.test: adding test case. mysql-test/r/ctype_utf8.result: adding test case.
Diffstat (limited to 'sql/password.c')
-rw-r--r--sql/password.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/password.c b/sql/password.c
index 60cc0ac0c97..aa05be8c740 100644
--- a/sql/password.c
+++ b/sql/password.c
@@ -318,8 +318,8 @@ void create_random_string(char *to, uint length, struct rand_struct *rand_st)
str, len IN the beginning and the length of the input string
*/
-static void
-octet2hex(char *to, const uint8 *str, uint len)
+void
+octet2hex(char *to, const unsigned char *str, uint len)
{
const uint8 *str_end= str + len;
for (; str != str_end; ++str)