1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski//i20156 - new file for xmlsecurity module
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski/** -- idl definition -- **/
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_xml_crypto_securityoperationstatus_idl_
29*b1cdbd2cSJim Jagielski#define __com_sun_star_xml_crypto_securityoperationstatus_idl_
30*b1cdbd2cSJim Jagielski
31*b1cdbd2cSJim Jagielskimodule com { module sun { module star { module xml { module crypto {
32*b1cdbd2cSJim Jagielski
33*b1cdbd2cSJim Jagielski/**
34*b1cdbd2cSJim Jagielski * Defines results for security operation.
35*b1cdbd2cSJim Jagielski */
36*b1cdbd2cSJim Jagielskienum SecurityOperationStatus
37*b1cdbd2cSJim Jagielski{
38*b1cdbd2cSJim Jagielski	UNKNOWN,
39*b1cdbd2cSJim Jagielski	OPERATION_SUCCEEDED,
40*b1cdbd2cSJim Jagielski	RUNTIMEERROR_FAILED,
41*b1cdbd2cSJim Jagielski/**
42*b1cdbd2cSJim Jagielski * The following constants are derived from xmlsec error definations, as following:
43*b1cdbd2cSJim Jagielski *
44*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_XMLSEC_FAILED
45*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_MALLOC_FAILED
46*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_STRDUP_FAILED
47*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_CRYPTO_FAILED
48*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_XML_FAILED
49*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_XSLT_FAILED
50*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_IO_FAILED
51*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_DISABLED
52*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_NOT_IMPLEMENTED
53*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_SIZE
54*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_DATA
55*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_RESULT
56*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_TYPE
57*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_OPERATION
58*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_STATUS
59*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_FORMAT
60*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_DATA_NOT_MATCH
61*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_NODE
62*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_NODE_CONTENT
63*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_NODE_ATTRIBUTE
64*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_MISSING_NODE_ATTRIBUTE
65*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_NODE_ALREADY_PRESENT
66*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_UNEXPECTED_NODE
67*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_NODE_NOT_FOUND
68*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_TRANSFORM
69*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_TRANSFORM_KEY
70*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_URI_TYPE
71*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_TRANSFORM_SAME_DOCUMENT_REQUIRED
72*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_TRANSFORM_DISABLED
73*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_KEY_DATA
74*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_KEY_DATA_NOT_FOUND
75*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_KEY_DATA_ALREADY_EXIST
76*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_INVALID_KEY_DATA_SIZE
77*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_KEY_NOT_FOUND
78*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_KEYDATA_DISABLED
79*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_MAX_RETRIEVALS_LEVEL
80*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_MAX_RETRIEVAL_TYPE_MISMATCH
81*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_MAX_ENCKEY_LEVEL
82*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_CERT_VERIFY_FAILED
83*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_CERT_NOT_FOUND
84*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_CERT_REVOKED
85*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_CERT_ISSUER_FAILED
86*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_CERT_NOT_YET_VALID
87*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_CERT_HAS_EXPIRED
88*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_DSIG_NO_REFERENCES
89*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_DSIG_INVALID_REFERENCE
90*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_R_ASSERTION
91*b1cdbd2cSJim Jagielski * XMLSEC_ERRORS_MAX_NUMBER
92*b1cdbd2cSJim Jagielski */
93*b1cdbd2cSJim Jagielski	ENGINE_FAILED,
94*b1cdbd2cSJim Jagielski	MALLOC_FAILED,
95*b1cdbd2cSJim Jagielski	STRDUP_FAILED,
96*b1cdbd2cSJim Jagielski	CRYPTO_FAILED,
97*b1cdbd2cSJim Jagielski	XML_FAILED,
98*b1cdbd2cSJim Jagielski	XSLT_FAILED,
99*b1cdbd2cSJim Jagielski	IO_FAILED,
100*b1cdbd2cSJim Jagielski	DISABLED,
101*b1cdbd2cSJim Jagielski	NOT_IMPLEMENTED,
102*b1cdbd2cSJim Jagielski	INVALID_SIZE,
103*b1cdbd2cSJim Jagielski	INVALID_DATA,
104*b1cdbd2cSJim Jagielski	INVALID_RESULT,
105*b1cdbd2cSJim Jagielski	INVALID_TYPE,
106*b1cdbd2cSJim Jagielski	INVALID_OPERATION,
107*b1cdbd2cSJim Jagielski	INVALID_STATUS,
108*b1cdbd2cSJim Jagielski	INVALID_FORMAT,
109*b1cdbd2cSJim Jagielski	DATA_NOT_MATCH,
110*b1cdbd2cSJim Jagielski	INVALID_NODE,
111*b1cdbd2cSJim Jagielski	INVALID_NODE_CONTENT,
112*b1cdbd2cSJim Jagielski	INVALID_NODE_ATTRIBUTE,
113*b1cdbd2cSJim Jagielski	MISSING_NODE_ATTRIBUTE,
114*b1cdbd2cSJim Jagielski	NODE_ALREADY_PRESENT,
115*b1cdbd2cSJim Jagielski	UNEXPECTED_NODE,
116*b1cdbd2cSJim Jagielski	NODE_NOT_FOUND,
117*b1cdbd2cSJim Jagielski	INVALID_TRANSFORM,
118*b1cdbd2cSJim Jagielski	INVALID_TRANSFORM_KEY,
119*b1cdbd2cSJim Jagielski	INVALID_URI_TYPE,
120*b1cdbd2cSJim Jagielski	TRANSFORM_SAME_DOCUMENT_REQUIRED,
121*b1cdbd2cSJim Jagielski	TRANSFORM_DISABLED,
122*b1cdbd2cSJim Jagielski	INVALID_KEY_DATA,
123*b1cdbd2cSJim Jagielski	KEY_DATA_NOT_FOUND,
124*b1cdbd2cSJim Jagielski	KEY_DATA_ALREADY_EXIST,
125*b1cdbd2cSJim Jagielski	INVALID_KEY_DATA_SIZE,
126*b1cdbd2cSJim Jagielski	KEY_NOT_FOUND,
127*b1cdbd2cSJim Jagielski	KEYDATA_DISABLED,
128*b1cdbd2cSJim Jagielski	MAX_RETRIEVALS_LEVEL,
129*b1cdbd2cSJim Jagielski	MAX_RETRIEVAL_TYPE_MISMATCH,
130*b1cdbd2cSJim Jagielski	MAX_ENCKEY_LEVEL,
131*b1cdbd2cSJim Jagielski	CERT_VERIFY_FAILED,
132*b1cdbd2cSJim Jagielski	CERT_NOT_FOUND,
133*b1cdbd2cSJim Jagielski	CERT_REVOKED,
134*b1cdbd2cSJim Jagielski	CERT_ISSUER_FAILED,
135*b1cdbd2cSJim Jagielski	CERT_NOT_YET_VALID,
136*b1cdbd2cSJim Jagielski	CERT_HAS_EXPIRED,
137*b1cdbd2cSJim Jagielski	DSIG_NO_REFERENCES,
138*b1cdbd2cSJim Jagielski	DSIG_INVALID_REFERENCE,
139*b1cdbd2cSJim Jagielski	ASSERTION
140*b1cdbd2cSJim Jagielski};
141*b1cdbd2cSJim Jagielski
142*b1cdbd2cSJim Jagielski} ; } ; } ; } ; } ;
143*b1cdbd2cSJim Jagielski
144*b1cdbd2cSJim Jagielski
145*b1cdbd2cSJim Jagielski#endif
146*b1cdbd2cSJim Jagielski
147