2N/A/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2N/A * Copyright 1993 by OpenVision Technologies, Inc. 2N/A * Permission to use, copy, modify, distribute, and sell this software 2N/A * and its documentation for any purpose is hereby granted without fee, 2N/A * provided that the above copyright notice appears in all copies and 2N/A * that both that copyright notice and this permission notice appear in 2N/A * supporting documentation, and that the name of OpenVision not be used 2N/A * in advertising or publicity pertaining to distribution of the software 2N/A * without specific, written prior permission. OpenVision makes no 2N/A * representations about the suitability of this software for any 2N/A * purpose. It is provided "as is" without express or implied warranty. 2N/A * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 2N/A * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 2N/A * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR 2N/A * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF 2N/A * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 2N/A * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 2N/A * PERFORMANCE OF THIS SOFTWARE. 2N/A * Solaris Kerberos: SUNW15resync XXX these are not part of the GSSAPI C 2N/A * bindings (but should be), MIT 1.5 has these in gssapi.h. 2N/A/* This code has knowledge of the min and max errors of each type 2N/A within the gssapi major status */ 2N/A "A required input parameter could not be read",
2N/A "A required input parameter could not be written",
2N/A "A parameter was malformed",
2N/A "An unsupported mechanism was requested",
2N/A "An invalid name was supplied",
2N/A "A supplied name was of an unsupported type",
2N/A "Incorrect channel bindings were supplied",
2N/A "An invalid status code was supplied",
2N/A "A token had an invalid signature",
2N/A "No credentials were supplied",
2N/A "No context has been established",
2N/A "A token was invalid",
2N/A "A credential was invalid",
2N/A "The referenced credentials have expired",
2N/A "The context has expired",
2N/A "Miscellaneous failure",
2N/A "The quality-of-protection requested could not be provided",
2N/A "The operation is forbidden by the local security policy",
2N/A "The operation or option is not available",
2N/A/* this becomes overly gross after about 4 strings */ 2N/A "The routine must be called again to complete its function",
2N/A "The token was a duplicate of an earlier token",
2N/A "The token's validity period has expired",
2N/A "A later token has already been processed",
2N/A/* code should be set to the calling error field */ 2N/A/* code should be set to the routine error field */ 2N/A/* code should be set to the bit offset (log_2) of a supplementary info bit */ 2N/A/* return error messages, for routine errors, call error, and status, 2N/A message_context == 0 : print the routine error 2N/A message_context == 1 : print the calling error 2N/A message_context > 2 : print supplementary info bit (message_context-2) 2N/A /*** deal with no error at all specially */ 2N/A /*** do routine error */ 2N/A /*** do calling error */ 2N/A /*** do sinfo bits (*message_context == 2 + number of bits done) */ 2N/A /* mask off the bits which have been done */ 2N/A /* bogon input - there should be something left */ 2N/A /* compute the bit offset */