gss: port NegoEx implementation from MIT
An implementation of draft-zhu-negoex-04 for MIT Kerberos was developed in 2011. This has been recently integrated, with many fixes from Greg Hudson. This commit ports it to Heimdal. The implementation has been interoperability tested with MIT Kerberos and Windows, using the GSS EAP mechanism developed as part of the Moonshot project. The SPNEGO code was also updated to import the state machine from Apple which improves mechListMIC processing and avoids discarding initial context tokens generated during mechanism probing, that can be used for optimistic tokens. Finally, to aid in testing, the GSS-API mechanism glue configuration file can be changed using the environment variable GSS_MECH_CONFIG. This environment variable name, along with the format of the configuration file, is compatible with MIT (although it would be difficult for a single mechanism binary to support both implementations).
This commit is contained in:
@@ -50,6 +50,38 @@ extern GSSAPI_LIB_VARIABLE gss_OID_desc __gss_spnego_mechanism_oid_desc;
|
||||
#define GSS_SPNEGO_MECHANISM (&__gss_spnego_mechanism_oid_desc)
|
||||
#define gss_mech_spnego GSS_SPNEGO_MECHANISM
|
||||
|
||||
/*
|
||||
* NegoEx extensions, to be implemented by mechanisms
|
||||
*/
|
||||
GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL
|
||||
gssspi_query_mechanism_info(
|
||||
OM_uint32 * /* minor_status */,
|
||||
gss_const_OID /* mech_oid */,
|
||||
unsigned char[16] /* auth_scheme */
|
||||
);
|
||||
|
||||
GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL
|
||||
gssspi_query_meta_data(
|
||||
OM_uint32 * /* minor_status */,
|
||||
gss_const_OID /* mech_oid */,
|
||||
gss_cred_id_t /* cred_handle */,
|
||||
gss_ctx_id_t * /* context_handle */,
|
||||
gss_const_name_t /* targ_name */,
|
||||
OM_uint32 /* req_flags */,
|
||||
gss_buffer_t /* meta_data */
|
||||
);
|
||||
|
||||
GSSAPI_LIB_FUNCTION OM_uint32 GSSAPI_LIB_CALL
|
||||
gssspi_exchange_meta_data(
|
||||
OM_uint32 * /* minor_status */,
|
||||
gss_const_OID /* mech_oid */,
|
||||
gss_cred_id_t /* cred_handle */,
|
||||
gss_ctx_id_t * /* context_handle */,
|
||||
gss_const_name_t /* targ_name */,
|
||||
OM_uint32 /* req_flags */,
|
||||
gss_const_buffer_t /* meta_data */
|
||||
);
|
||||
|
||||
GSSAPI_CPP_END
|
||||
|
||||
#endif /* GSSAPI_SPNEGO_H_ */
|
||||
|
||||
Reference in New Issue
Block a user