gss: fix gss_decapsulate_token() return codes
authorLuke Howard <lukeh@padl.com>
Fri, 17 Apr 2020 01:11:43 +0000 (11:11 +1000)
committerLuke Howard <lukeh@padl.com>
Fri, 17 Apr 2020 01:11:43 +0000 (11:11 +1000)
commit4199118c7670ebe8604b4b839850fa7e08a4077f
treeabeb19cff6e0c116411f0d8ae1b52099928974e0
parent26a69856f624b2d5e375ce348d1f559e0d404a7b
gss: fix gss_decapsulate_token() return codes

gss_decapsulate_token() should return GSS_S_BAD_MECH if the mechanism did not
match the expected one, and GSS_S_DEFECTIVE_TOKEN if the token could not be
parsed for some other reason, rather than GSS_S_FAILURE in both cases
lib/gssapi/mech/gss_decapsulate_token.c