X-Git-Url: http://www.project-moonshot.org/gitweb/?p=gssweb.git;a=blobdiff_plain;f=json_gssapi%2Fsrc%2Fcommands%2FGSSInitSecContext.cpp;h=bf1611ff165bf7df71c7623dc87ddcb077443546;hp=8b71d81fb2fc35fa2fa1abeecdbae1e2a8221370;hb=816da32161b0e55872cc939c6e68656664e47168;hpb=232ccf184c8a98a8792fa29bcd8e2a7ba2798a8f diff --git a/json_gssapi/src/commands/GSSInitSecContext.cpp b/json_gssapi/src/commands/GSSInitSecContext.cpp index 8b71d81..bf1611f 100644 --- a/json_gssapi/src/commands/GSSInitSecContext.cpp +++ b/json_gssapi/src/commands/GSSInitSecContext.cpp @@ -192,8 +192,7 @@ bool GSSInitSecContext::loadParameters(JSONObject *params) if (GSS_C_NO_OID == this->mechType.toGss() ) throw std::invalid_argument( std::string() + "Could not create a mech_type OID from '" + key + "'"); if ( !(this->mechType.isGssEapMech()) ) - throw std::invalid_argument( std::string() + - "'" + key + "' must be 1.3.6.1.5.5.15.1.1.*"); + throw GSSException(string("'") + params->get("mech_type").string() + "' must be in 1.3.6.1.5.5.15.1.1.*", 65536, 0, this->mechType.toGss()); } // req_flags