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