/* * linux/include/sunrpc/gss_err.h * * Adapted from MIT Kerberos 5-1.2.1 include/gssapi/gssapi.h * * Copyright (c) 2002 The Regents of the University of Michigan. * All rights reserved. * * Andy Adamson <[email protected]> */ /* * Copyright 1993 by OpenVision Technologies, Inc. * * Permission to use, copy, modify, distribute, and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appears in all copies and * that both that copyright notice and this permission notice appear in * supporting documentation, and that the name of OpenVision not be used * in advertising or publicity pertaining to distribution of the software * without specific, written prior permission. OpenVision makes no * representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty. * * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ #ifndef _LINUX_SUNRPC_GSS_ERR_H #define _LINUX_SUNRPC_GSS_ERR_H OM_uint32; /* * Flag bits for context-level services. */ #define GSS_C_DELEG_FLAG … #define GSS_C_MUTUAL_FLAG … #define GSS_C_REPLAY_FLAG … #define GSS_C_SEQUENCE_FLAG … #define GSS_C_CONF_FLAG … #define GSS_C_INTEG_FLAG … #define GSS_C_ANON_FLAG … #define GSS_C_PROT_READY_FLAG … #define GSS_C_TRANS_FLAG … /* * Credential usage options */ #define GSS_C_BOTH … #define GSS_C_INITIATE … #define GSS_C_ACCEPT … /* * Status code types for gss_display_status */ #define GSS_C_GSS_CODE … #define GSS_C_MECH_CODE … /* * Expiration time of 2^32-1 seconds means infinite lifetime for a * credential or security context */ #define GSS_C_INDEFINITE … /* Major status codes */ #define GSS_S_COMPLETE … /* * Some "helper" definitions to make the status code macros obvious. */ #define GSS_C_CALLING_ERROR_OFFSET … #define GSS_C_ROUTINE_ERROR_OFFSET … #define GSS_C_SUPPLEMENTARY_OFFSET … #define GSS_C_CALLING_ERROR_MASK … #define GSS_C_ROUTINE_ERROR_MASK … #define GSS_C_SUPPLEMENTARY_MASK … /* * The macros that test status codes for error conditions. Note that the * GSS_ERROR() macro has changed slightly from the V1 GSSAPI so that it now * evaluates its argument only once. */ #define GSS_CALLING_ERROR(x) … #define GSS_ROUTINE_ERROR(x) … #define GSS_SUPPLEMENTARY_INFO(x) … #define GSS_ERROR(x) … /* * Now the actual status code definitions */ /* * Calling errors: */ #define GSS_S_CALL_INACCESSIBLE_READ … #define GSS_S_CALL_INACCESSIBLE_WRITE … #define GSS_S_CALL_BAD_STRUCTURE … /* * Routine errors: */ #define GSS_S_BAD_MECH … #define GSS_S_BAD_NAME … #define GSS_S_BAD_NAMETYPE … #define GSS_S_BAD_BINDINGS … #define GSS_S_BAD_STATUS … #define GSS_S_BAD_SIG … #define GSS_S_NO_CRED … #define GSS_S_NO_CONTEXT … #define GSS_S_DEFECTIVE_TOKEN … #define GSS_S_DEFECTIVE_CREDENTIAL … #define GSS_S_CREDENTIALS_EXPIRED … #define GSS_S_CONTEXT_EXPIRED … #define GSS_S_FAILURE … #define GSS_S_BAD_QOP … #define GSS_S_UNAUTHORIZED … #define GSS_S_UNAVAILABLE … #define GSS_S_DUPLICATE_ELEMENT … #define GSS_S_NAME_NOT_MN … /* * Supplementary info bits: */ #define GSS_S_CONTINUE_NEEDED … #define GSS_S_DUPLICATE_TOKEN … #define GSS_S_OLD_TOKEN … #define GSS_S_UNSEQ_TOKEN … #define GSS_S_GAP_TOKEN … /* XXXX these are not part of the GSSAPI C bindings! (but should be) */ #define GSS_CALLING_ERROR_FIELD(x) … #define GSS_ROUTINE_ERROR_FIELD(x) … #define GSS_SUPPLEMENTARY_INFO_FIELD(x) … /* XXXX This is a necessary evil until the spec is fixed */ #define GSS_S_CRED_UNAVAIL … #endif /* __LINUX_SUNRPC_GSS_ERR_H */