handle minor_status more consistently

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10533 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-08-23 04:35:55 +00:00
parent fe6efabb74
commit e129105771
12 changed files with 66 additions and 42 deletions

View File

@@ -58,8 +58,10 @@ verify_mic_des
ret = gssapi_krb5_verify_header (&p,
token_buffer->length,
"\x01\x01");
if (ret)
if (ret) {
*minor_status = 0;
return ret;
}
if (memcmp(p, "\x00\x00", 2) != 0)
return GSS_S_BAD_SIG;
@@ -144,8 +146,10 @@ verify_mic_des3
ret = gssapi_krb5_verify_header (&p,
token_buffer->length,
"\x01\x01");
if (ret)
if (ret) {
*minor_status = 0;
return ret;
}
if (memcmp(p, "\x04\x00", 2) != 0) /* SGN_ALG = HMAC SHA1 DES3-KD */
return GSS_S_BAD_SIG;