1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28//i20156 - new file for xmlsecurity module
29
30/** -- idl definition -- **/
31
32#ifndef __com_sun_star_xml_crypto_securityoperationstatus_idl_
33#define __com_sun_star_xml_crypto_securityoperationstatus_idl_
34
35module com { module sun { module star { module xml { module crypto {
36
37/**
38 * Defines results for security operation.
39 */
40enum SecurityOperationStatus
41{
42	UNKNOWN,
43	OPERATION_SUCCEEDED,
44	RUNTIMEERROR_FAILED,
45/**
46 * The following constants are derived from xmlsec error definations, as following:
47 *
48 * XMLSEC_ERRORS_R_XMLSEC_FAILED
49 * XMLSEC_ERRORS_R_MALLOC_FAILED
50 * XMLSEC_ERRORS_R_STRDUP_FAILED
51 * XMLSEC_ERRORS_R_CRYPTO_FAILED
52 * XMLSEC_ERRORS_R_XML_FAILED
53 * XMLSEC_ERRORS_R_XSLT_FAILED
54 * XMLSEC_ERRORS_R_IO_FAILED
55 * XMLSEC_ERRORS_R_DISABLED
56 * XMLSEC_ERRORS_R_NOT_IMPLEMENTED
57 * XMLSEC_ERRORS_R_INVALID_SIZE
58 * XMLSEC_ERRORS_R_INVALID_DATA
59 * XMLSEC_ERRORS_R_INVALID_RESULT
60 * XMLSEC_ERRORS_R_INVALID_TYPE
61 * XMLSEC_ERRORS_R_INVALID_OPERATION
62 * XMLSEC_ERRORS_R_INVALID_STATUS
63 * XMLSEC_ERRORS_R_INVALID_FORMAT
64 * XMLSEC_ERRORS_R_DATA_NOT_MATCH
65 * XMLSEC_ERRORS_R_INVALID_NODE
66 * XMLSEC_ERRORS_R_INVALID_NODE_CONTENT
67 * XMLSEC_ERRORS_R_INVALID_NODE_ATTRIBUTE
68 * XMLSEC_ERRORS_R_MISSING_NODE_ATTRIBUTE
69 * XMLSEC_ERRORS_R_NODE_ALREADY_PRESENT
70 * XMLSEC_ERRORS_R_UNEXPECTED_NODE
71 * XMLSEC_ERRORS_R_NODE_NOT_FOUND
72 * XMLSEC_ERRORS_R_INVALID_TRANSFORM
73 * XMLSEC_ERRORS_R_INVALID_TRANSFORM_KEY
74 * XMLSEC_ERRORS_R_INVALID_URI_TYPE
75 * XMLSEC_ERRORS_R_TRANSFORM_SAME_DOCUMENT_REQUIRED
76 * XMLSEC_ERRORS_R_TRANSFORM_DISABLED
77 * XMLSEC_ERRORS_R_INVALID_KEY_DATA
78 * XMLSEC_ERRORS_R_KEY_DATA_NOT_FOUND
79 * XMLSEC_ERRORS_R_KEY_DATA_ALREADY_EXIST
80 * XMLSEC_ERRORS_R_INVALID_KEY_DATA_SIZE
81 * XMLSEC_ERRORS_R_KEY_NOT_FOUND
82 * XMLSEC_ERRORS_R_KEYDATA_DISABLED
83 * XMLSEC_ERRORS_R_MAX_RETRIEVALS_LEVEL
84 * XMLSEC_ERRORS_R_MAX_RETRIEVAL_TYPE_MISMATCH
85 * XMLSEC_ERRORS_R_MAX_ENCKEY_LEVEL
86 * XMLSEC_ERRORS_R_CERT_VERIFY_FAILED
87 * XMLSEC_ERRORS_R_CERT_NOT_FOUND
88 * XMLSEC_ERRORS_R_CERT_REVOKED
89 * XMLSEC_ERRORS_R_CERT_ISSUER_FAILED
90 * XMLSEC_ERRORS_R_CERT_NOT_YET_VALID
91 * XMLSEC_ERRORS_R_CERT_HAS_EXPIRED
92 * XMLSEC_ERRORS_R_DSIG_NO_REFERENCES
93 * XMLSEC_ERRORS_R_DSIG_INVALID_REFERENCE
94 * XMLSEC_ERRORS_R_ASSERTION
95 * XMLSEC_ERRORS_MAX_NUMBER
96 */
97	ENGINE_FAILED,
98	MALLOC_FAILED,
99	STRDUP_FAILED,
100	CRYPTO_FAILED,
101	XML_FAILED,
102	XSLT_FAILED,
103	IO_FAILED,
104	DISABLED,
105	NOT_IMPLEMENTED,
106	INVALID_SIZE,
107	INVALID_DATA,
108	INVALID_RESULT,
109	INVALID_TYPE,
110	INVALID_OPERATION,
111	INVALID_STATUS,
112	INVALID_FORMAT,
113	DATA_NOT_MATCH,
114	INVALID_NODE,
115	INVALID_NODE_CONTENT,
116	INVALID_NODE_ATTRIBUTE,
117	MISSING_NODE_ATTRIBUTE,
118	NODE_ALREADY_PRESENT,
119	UNEXPECTED_NODE,
120	NODE_NOT_FOUND,
121	INVALID_TRANSFORM,
122	INVALID_TRANSFORM_KEY,
123	INVALID_URI_TYPE,
124	TRANSFORM_SAME_DOCUMENT_REQUIRED,
125	TRANSFORM_DISABLED,
126	INVALID_KEY_DATA,
127	KEY_DATA_NOT_FOUND,
128	KEY_DATA_ALREADY_EXIST,
129	INVALID_KEY_DATA_SIZE,
130	KEY_NOT_FOUND,
131	KEYDATA_DISABLED,
132	MAX_RETRIEVALS_LEVEL,
133	MAX_RETRIEVAL_TYPE_MISMATCH,
134	MAX_ENCKEY_LEVEL,
135	CERT_VERIFY_FAILED,
136	CERT_NOT_FOUND,
137	CERT_REVOKED,
138	CERT_ISSUER_FAILED,
139	CERT_NOT_YET_VALID,
140	CERT_HAS_EXPIRED,
141	DSIG_NO_REFERENCES,
142	DSIG_INVALID_REFERENCE,
143	ASSERTION
144};
145
146} ; } ; } ; } ; } ;
147
148
149#endif
150
151