(init_auth): There is no OID wrapping on the reply token. From Andrew Bartlett
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18934 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -574,12 +574,21 @@ repl_mutual
|
|||||||
if (actual_mech_type)
|
if (actual_mech_type)
|
||||||
*actual_mech_type = GSS_KRB5_MECHANISM;
|
*actual_mech_type = GSS_KRB5_MECHANISM;
|
||||||
|
|
||||||
ret = _gsskrb5_decapsulate (minor_status, input_token, &indata,
|
if (ctx->flags & GSS_C_DCE_STYLE) {
|
||||||
"\x02\x00", GSS_KRB5_MECHANISM);
|
/* There is no OID wrapping. */
|
||||||
|
indata.length = input_token->length;
|
||||||
|
indata.data = input_token->value;
|
||||||
|
} else {
|
||||||
|
ret = _gsskrb5_decapsulate (minor_status,
|
||||||
|
input_token,
|
||||||
|
&indata,
|
||||||
|
"\x02\x00",
|
||||||
|
GSS_KRB5_MECHANISM);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
/* XXX - Handle AP_ERROR */
|
/* XXX - Handle AP_ERROR */
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
kret = krb5_rd_rep (_gsskrb5_context,
|
kret = krb5_rd_rep (_gsskrb5_context,
|
||||||
ctx->auth_context,
|
ctx->auth_context,
|
||||||
|
Reference in New Issue
Block a user