[44] in GSSAPI Development

home help back first fref pref prev next nref lref last post

Error codes

daemon@ATHENA.MIT.EDU (John Wray, Secure Systems Developm)
Wed May 15 19:36:30 1991

Date: Wed, 15 May 91 16:35:29 PDT
From: "John Wray, Secure Systems Development, DTN 226-6106  15-May-1991 1627" <wray@ultra.enet.dec.com>
To: gssapi-dev@Pa.dec.com

Re Ted:

>I note that the error codes on the GSS API C bindings spec D.1 are
>still:
>
>GSS_S_BAD_MECH		1
>   etc.
>
>instead of
>
>GSS_S_BAD_MECH		1 << 16
>   etc.

The spec is intended to read as you say.  I agree it's not clear - I'll fix
that.  The "value" column in the table is intended to be a value within the
corresponding bit field, hence a routine error value of 1 corresponds to a GSS
status code of 1<<16 (since the LSB of the routine error field is sixteen bits
from the LSB of the status code).

	#define GSS_S_BAD_MECH	1 << 16
	#define GSS_S_BAD_NAME	2 << 16
	etc.

is what's intended, and what we'll be implementing.

John

home help back first fref pref prev next nref lref last post