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:
@@ -31,3 +31,13 @@ OM_uint32 _gss_free_oid(OM_uint32 *, gss_OID);
|
||||
OM_uint32 _gss_intern_oid(OM_uint32 *, gss_const_OID, gss_OID *);
|
||||
OM_uint32 _gss_copy_buffer(OM_uint32 *minor_status,
|
||||
const gss_buffer_t from_buf, gss_buffer_t to_buf);
|
||||
|
||||
void _gss_mg_encode_le_uint32(uint32_t n, uint8_t *p);
|
||||
void _gss_mg_decode_le_uint32(const void *ptr, uint32_t *n);
|
||||
void _gss_mg_encode_be_uint32(uint32_t n, uint8_t *p);
|
||||
void _gss_mg_decode_be_uint32(const void *ptr, uint32_t *n);
|
||||
|
||||
void _gss_mg_encode_le_uint16(uint16_t n, uint8_t *p);
|
||||
void _gss_mg_decode_le_uint16(const void *ptr, uint16_t *n);
|
||||
void _gss_mg_encode_be_uint16(uint16_t n, uint8_t *p);
|
||||
void _gss_mg_decode_be_uint16(const void *ptr, uint16_t *n);
|
||||
|
Reference in New Issue
Block a user