Rework the invalid argument for init sec context exception
authorMark Donnelly <mark@painless-security.com>
Fri, 31 Jul 2015 16:33:49 +0000 (12:33 -0400)
committerMark Donnelly <mark@painless-security.com>
Fri, 31 Jul 2015 16:33:49 +0000 (12:33 -0400)
commit816da32161b0e55872cc939c6e68656664e47168
tree5058d58cde0e90069e02ccfff4b9ff1cdbbaec77
parent232ccf184c8a98a8792fa29bcd8e2a7ba2798a8f
Rework the invalid argument for init sec context exception

* GSSException:
  * Separate out messages for major an minor error messages
  * Reduce the what() message
  * Change the flow so that major and minor messages are calculated at initialization time, so that everything else can be guaranteed not to throw any exceptions
* GSSRequest:
  * Standardize the formatting of the errors returned by a GSSException
* GSSInitSecContext
  * Throw GSSException instead of invalid_argument when the mech is unacceptable
json_gssapi/src/GSSException.cpp
json_gssapi/src/GSSException.h
json_gssapi/src/GSSRequest.cpp
json_gssapi/src/commands/GSSInitSecContext.cpp