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