summaryrefslogtreecommitdiff
path: root/sql/sql_acl.h
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-07-30 22:05:08 +0200
committerunknown <serg@serg.mylan>2004-07-30 22:05:08 +0200
commit95da1ff0fcc75b5cacdfebb529611ebf62aeb08f (patch)
tree6acb782689f3413275490851b6010dbfd28713a3 /sql/sql_acl.h
parent5e3a68892a08a2ca4b77152475da4afda3212a79 (diff)
downloadmariadb-git-95da1ff0fcc75b5cacdfebb529611ebf62aeb08f.tar.gz
apply in SET PASSWORD same checks as in GRANT, to let only valid hashes through
Diffstat (limited to 'sql/sql_acl.h')
-rw-r--r--sql/sql_acl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_acl.h b/sql/sql_acl.h
index a237b45e29c..68cb1476eb5 100644
--- a/sql/sql_acl.h
+++ b/sql/sql_acl.h
@@ -142,7 +142,8 @@ ulong acl_get(const char *host, const char *ip,
int acl_getroot(THD *thd, USER_RESOURCES *mqh, const char *passwd,
uint passwd_len);
bool acl_check_host(const char *host, const char *ip);
-bool check_change_password(THD *thd, const char *host, const char *user);
+bool check_change_password(THD *thd, const char *host, const char *user,
+ char *password);
bool change_password(THD *thd, const char *host, const char *user,
char *password);
int mysql_grant(THD *thd, const char *db, List <LEX_USER> &user_list,