From fad37adfbf174d2f1907ba7459b687eabd4a41e1 Mon Sep 17 00:00:00 2001 From: Massimiliano Pinto Date: Fri, 14 Jun 2013 18:39:42 +0200 Subject: [PATCH] Added comments for gw_mysql_do_authentication --- core/gateway_mysql_protocol.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/gateway_mysql_protocol.c b/core/gateway_mysql_protocol.c index 7a17bf3e6..b7b9a937e 100644 --- a/core/gateway_mysql_protocol.c +++ b/core/gateway_mysql_protocol.c @@ -356,6 +356,19 @@ MySQLSendHandshake(DCB* dcb) return sizeof(mysql_packet_header) + mysql_payload_size; } +/* + * gw_mysql_do_authentication + * + * Performs the MySQL protocol 4.1 authentication, using data in GWBUF *queue + * + * The useful data: user, db, client_sha1 are copied into the MYSQL_session * dcb->session->data + * client_capabilitiesa are copied into the dcb->protocol + * + * @param dcb Descriptor Control Block of the client + * @param The GWBUF with data from client + * @return 0 for Authentication ok, !=1 for failed autht + * + */ int gw_mysql_do_authentication(DCB *dcb, GWBUF *queue) { MySQLProtocol *protocol = NULL;