Don't add asn1 wrapping to token when using DCE_STYLE.
Patch from Stefan Metze. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23255 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -540,12 +540,17 @@ init_auth
|
|||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = _gsskrb5_encapsulate (minor_status, &outbuf, output_token,
|
if (flags & GSS_C_DCE_STYLE) {
|
||||||
(u_char *)"\x01\x00", GSS_KRB5_MECHANISM);
|
output_token->value = outbuf.data;
|
||||||
if (ret)
|
output_token->length = outbuf.length;
|
||||||
goto failure;
|
} else {
|
||||||
|
ret = _gsskrb5_encapsulate (minor_status, &outbuf, output_token,
|
||||||
|
(u_char *)"\x01\x00", GSS_KRB5_MECHANISM);
|
||||||
|
krb5_data_free (&outbuf);
|
||||||
|
if (ret)
|
||||||
|
goto failure;
|
||||||
|
}
|
||||||
|
|
||||||
krb5_data_free (&outbuf);
|
|
||||||
krb5_free_creds(context, kcred);
|
krb5_free_creds(context, kcred);
|
||||||
free_Checksum(&cksum);
|
free_Checksum(&cksum);
|
||||||
if (cred == NULL)
|
if (cred == NULL)
|
||||||
|
Reference in New Issue
Block a user