Clean up parse_xml_response() and process_form() return values.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 22 Apr 2009 12:17:50 +0000 (13:17 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 22 Apr 2009 12:20:06 +0000 (13:20 +0100)
commita2ed3a322d786a86aa387594e2992e88c81a5071
tree6e109534efe5480bef141c39d33971231bc95676
parent7f5ec211954452ae9ab487bbcbe567c9fddeea8c
Clean up parse_xml_response() and process_form() return values.

This was a mess; now it's simple. Return values are:
        0 when a form has been filled in and needs submitting
        1 for user cancellation
        2 when the xml indicated that login was already successful
        -errno for other errors

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
auth.c
http.c