Return an error if status_type is bogus.
We can't call gss_display_status() for GSS_C_GSS_CODE because we'd loop
back to ourselves as unfortunately the GSSAPI mechanisms SPI uses the
same symbol names as the public API ...
return GSS_S_CALL_INACCESSIBLE_READ;
}
+ if (status_type != GSS_C_MECH_CODE) {
+ *minor_status = EINVAL;
+ return GSS_S_BAD_STATUS;
+ }
+
*minor_status = 0;
+ *message_context = 0;
status_string->length = 0;
status_string->value = NULL;