Next integration phase, metadata and trust conversion.
[shibboleth/cpp-sp.git] / shib-target / hresult.h
1 /*
2  *  Copyright 2001-2005 Internet2
3  * 
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /* 
18  * hresult.h - Code definitions
19 = */
20
21 #ifndef __shibtargethresult_h__
22 #define __shibtargethresult_h__
23
24 #include <saml/hresult.h>
25
26 /* Codes from 0x9000 - 0x9FFF in FACILITY_ITF are reserved for the Shibboleth SP */
27
28 #define SHIBSP_E_FIRST MAKE_HRESULT(SEVERITY_ERROR,FACILITY_ITF,SAML_E_LAST + 0x0001)
29 #define SHIBSP_E_LAST MAKE_HRESULT(SEVERITY_ERROR,FACILITY_ITF,SAML_E_LAST + 0x1000)
30
31 #define SHIBSP_S_FIRST MAKE_HRESULT(SEVERITY_SUCCESS,FACILITY_ITF,SAML_S_LAST + 0x0001)
32 #define SHIBSP_S_LAST MAKE_HRESULT(SEVERITY_SUCCESS,FACILITY_ITF,SAML_S_LAST + 0x1000
33
34 /* Specific code definitions */
35
36 #define SHIBSP_E_UNSPECIFIED                (SHIBSP_E_FIRST + 0L)
37
38 #define SESSION_E_ADDRESSMISMATCH           (SHIBSP_E_FIRST + 1L)
39 #define SESSION_E_EXPIRED                   (SHIBSP_E_FIRST + 2L)
40
41 #endif