
Moving the sending of the final OK packet of the authentication process to the client protocol plugin makes the authentication plugins simpler. By reading the client's sequence and incrementing that by one, the client protocol module will always send the correct sequence byte in the final OK packet.