globus_gsi_authz_callout_error.h
Go to the documentation of this file.
/*
* Copyright 1999-2006 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef GLOBUS_GSI_AUTHZ_CALLOUT_ERROR_H
#define GLOBUS_GSI_AUTHZ_CALLOUT_ERROR_H
#include "globus_common.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef GLOBUS_GLOBAL_DOCUMENT_SET
#endif
typedef enum
{
GLOBUS_GSI_AUTHZ_CALLOUT_AUTHZ_CALLOUT_ERROR = 0,
GLOBUS_GSI_AUTHZ_CALLOUT_AUTHZ_DENIED_BY_CALLOUT = 1,
GLOBUS_GSI_AUTHZ_CALLOUT_CONFIGURATION_ERROR = 2,
GLOBUS_GSI_AUTHZ_CALLOUT_SYSTEM_ERROR = 3,
GLOBUS_GSI_AUTHZ_CALLOUT_CREDENTIAL_ERROR = 4,
GLOBUS_GSI_AUTHZ_CALLOUT_BAD_ARGUMENT_ERROR = 5,
GLOBUS_GSI_AUTHZ_CALLOUT_ERROR_LAST = 6
}
globus_gsi_authz_callout_error_t;
extern globus_module_descriptor_t globus_gsi_authz_callout_error_module;
#define GLOBUS_GSI_AUTHZ_CALLOUT_ERROR_MODULE (&globus_gsi_authz_callout_error_module)
extern char * globus_gsi_authz_callout_error_strings[];
#define GLOBUS_GSI_AUTHZ_CALLOUT_ERROR(__RESULT, __TYPE, __ERRSTR) \
{ \
char * _tmp_str_ = \
globus_common_create_string __ERRSTR; \
(__RESULT) = globus_error_put( \
globus_error_construct_error( \
GLOBUS_GSI_AUTHZ_CALLOUT_ERROR_MODULE, \
(__RESULT) ? globus_error_get(__RESULT) : NULL, \
__TYPE, \
__FILE__, \
"Authz Callout", \
__LINE__, \
"%s%s%s", \
globus_gsi_authz_callout_error_strings[__TYPE], \
_tmp_str_ ? ": " : "", \
_tmp_str_ ? _tmp_str_ : "")); \
if(_tmp_str_) free(_tmp_str_); \
}
#define GLOBUS_GSI_AUTHZ_CALLOUT_ERRNO_ERROR(__RESULT, __ERRNO) \
{ \
(__RESULT) = globus_error_put( \
globus_error_construct_errno_error( \
GLOBUS_GSI_AUTHZ_CALLOUT_ERROR_MODULE, \
(__RESULT) ? globus_error_get(__RESULT) : NULL, \
__ERRNO)); \
}
#ifdef __cplusplus
}
#endif
#endif
GLOBUS_GSI_AUTHZ_CALLOUT_SYSTEM_ERROR
Definition: globus_gsi_authz_callout_error.h:64
GLOBUS_GSI_AUTHZ_CALLOUT_AUTHZ_DENIED_BY_CALLOUT
Definition: globus_gsi_authz_callout_error.h:60
GLOBUS_GSI_AUTHZ_CALLOUT_AUTHZ_CALLOUT_ERROR
Definition: globus_gsi_authz_callout_error.h:58
GLOBUS_GSI_AUTHZ_CALLOUT_BAD_ARGUMENT_ERROR
Definition: globus_gsi_authz_callout_error.h:68
GLOBUS_GSI_AUTHZ_CALLOUT_CONFIGURATION_ERROR
Definition: globus_gsi_authz_callout_error.h:62
globus_gsi_authz_callout_error_t
globus_gsi_authz_callout_error_t
Error codes.
Definition: globus_gsi_authz_callout_error.h:55
GLOBUS_GSI_AUTHZ_CALLOUT_CREDENTIAL_ERROR
Definition: globus_gsi_authz_callout_error.h:66