(*): set minor_status

(gss_wrap): set conf_state to conf_req_flags on success
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12835 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-09-16 12:12:42 +00:00
parent e2a057b359
commit 6a38642fc0
2 changed files with 24 additions and 0 deletions

View File

@@ -218,6 +218,7 @@ _gssapi_get_mic_arcfour(OM_uint32 * minor_status,
memset(k6_data, 0, sizeof(k6_data));
}
*minor_status = 0;
return GSS_S_COMPLETE;
}
@@ -238,6 +239,9 @@ _gssapi_verify_mic_arcfour(OM_uint32 * minor_status,
u_char *p;
int cmp;
if (qop_state)
*qop_state = 0;
p = token_buffer->value;
omret = gssapi_krb5_verify_header (&p,
token_buffer->length,
@@ -306,6 +310,7 @@ _gssapi_verify_mic_arcfour(OM_uint32 * minor_status,
if (omret)
return omret;
*minor_status = 0;
return GSS_S_COMPLETE;
}
@@ -326,6 +331,9 @@ _gssapi_wrap_arcfour(OM_uint32 * minor_status,
krb5_error_code ret;
int32_t seq_number;
if (conf_state)
*conf_state = 0;
datalen = input_message_buffer->length + 1 /* padding */;
len = datalen + 30;
gssapi_krb5_encap_length (len, &len, &total_len, GSS_KRB5_MECHANISM);
@@ -443,6 +451,9 @@ _gssapi_wrap_arcfour(OM_uint32 * minor_status,
memset(k6_data, 0, sizeof(k6_data));
}
if (conf_state)
*conf_state = conf_req_flag;
*minor_status = 0;
return GSS_S_COMPLETE;
}
@@ -610,5 +621,6 @@ OM_uint32 _gssapi_unwrap_arcfour(OM_uint32 *minor_status,
if (conf_state)
*conf_state = conf_flag;
*minor_status = 0;
return GSS_S_COMPLETE;
}