From ab68d05e9342a2d6dbabce17f1cfc66c2ef3778a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 5 Dec 2003 22:44:41 +0000 Subject: [PATCH] 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 --- lib/gssapi/cfx.c | 6 +++--- lib/gssapi/krb5/cfx.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/gssapi/cfx.c b/lib/gssapi/cfx.c index c3f92ca21..4d25f8988 100644 --- a/lib/gssapi/cfx.c +++ b/lib/gssapi/cfx.c @@ -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; } diff --git a/lib/gssapi/krb5/cfx.c b/lib/gssapi/krb5/cfx.c index c3f92ca21..4d25f8988 100644 --- a/lib/gssapi/krb5/cfx.c +++ b/lib/gssapi/krb5/cfx.c @@ -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; }