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