summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
authorkostja@oak.local <>2003-07-31 17:11:52 +0400
committerkostja@oak.local <>2003-07-31 17:11:52 +0400
commit50d3291aee85411eee59e410429206bef1afb15b (patch)
treea08ffe6a07c8efcc13a357c5478274972fd673b0 /sql/protocol.cc
parente8d52f342d907f44bb779b227f895e728482eae9 (diff)
parentce691c7c61392a75313a129a83800c93b3f13f01 (diff)
downloadmariadb-git-50d3291aee85411eee59e410429206bef1afb15b.tar.gz
manual merge
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r--sql/protocol.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc
index e90aa7585e2..99d1e03c8a7 100644
--- a/sql/protocol.cc
+++ b/sql/protocol.cc
@@ -349,6 +349,25 @@ send_eof(THD *thd, bool no_flush)
}
DBUG_VOID_RETURN;
}
+
+/*
+ Please client to send scrambled_password in old format.
+ SYNOPSYS
+ send_old_password_request()
+ thd thread handle
+
+ RETURN VALUE
+ 0 ok
+ !0 error
+*/
+
+bool send_old_password_request(THD *thd)
+{
+ static char buff[1]= { (char) 254 };
+ NET *net= &thd->net;
+ return my_net_write(net, buff, 1) || net_flush(net);
+}
+
#endif /* EMBEDDED_LIBRARY */
/*