projects
/
gssweb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Return an error when GSSInitSecContext is called with an unacceptable mechanism.
[gssweb.git]
/
json_gssapi
/
src
/
commands
/
GSSInitSecContext.cpp
diff --git
a/json_gssapi/src/commands/GSSInitSecContext.cpp
b/json_gssapi/src/commands/GSSInitSecContext.cpp
index
87da4ab
..
8b71d81
100644
(file)
--- a/
json_gssapi/src/commands/GSSInitSecContext.cpp
+++ b/
json_gssapi/src/commands/GSSInitSecContext.cpp
@@
-191,6
+191,9
@@
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 (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.*");
}
// req_flags
}
// req_flags