Wrap token was in wrong order, found by Sam Hartman

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13183 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-12-05 22:44:41 +00:00
parent ae835d7c1a
commit ab68d05e93
2 changed files with 6 additions and 6 deletions

View File

@@ -235,8 +235,8 @@ OM_uint32 _gssapi_wrap_cfx(OM_uint32 *minor_status,
p = output_message_buffer->value;
token = (gss_cfx_wrap_token)p;
token->TOK_ID[0] = 0x04;
token->TOK_ID[1] = 0x05;
token->TOK_ID[0] = 0x05;
token->TOK_ID[1] = 0x04;
token->Flags = 0;
token->Filler = 0xFF;
if ((context_handle->more_flags & LOCAL) == 0)
@@ -436,7 +436,7 @@ OM_uint32 _gssapi_unwrap_cfx(OM_uint32 *minor_status,
token = (gss_cfx_wrap_token)p;
if (token->TOK_ID[0] != 0x04 || token->TOK_ID[1] != 0x05) {
if (token->TOK_ID[0] != 0x05 || token->TOK_ID[1] != 0x04) {
return GSS_S_DEFECTIVE_TOKEN;
}

View File

@@ -235,8 +235,8 @@ OM_uint32 _gssapi_wrap_cfx(OM_uint32 *minor_status,
p = output_message_buffer->value;
token = (gss_cfx_wrap_token)p;
token->TOK_ID[0] = 0x04;
token->TOK_ID[1] = 0x05;
token->TOK_ID[0] = 0x05;
token->TOK_ID[1] = 0x04;
token->Flags = 0;
token->Filler = 0xFF;
if ((context_handle->more_flags & LOCAL) == 0)
@@ -436,7 +436,7 @@ OM_uint32 _gssapi_unwrap_cfx(OM_uint32 *minor_status,
token = (gss_cfx_wrap_token)p;
if (token->TOK_ID[0] != 0x04 || token->TOK_ID[1] != 0x05) {
if (token->TOK_ID[0] != 0x05 || token->TOK_ID[1] != 0x04) {
return GSS_S_DEFECTIVE_TOKEN;
}