OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / mico / security / csi.h
1 /*
2  *  MICO --- an Open Source CORBA implementation
3  *  Copyright (c) 1997-2003 by The Mico Team
4  *
5  *  This file was automatically generated. DO NOT EDIT!
6  */
7
8 #include <CORBA.h>
9
10 #ifndef __CSI_H__
11 #define __CSI_H__
12
13
14 #ifdef _WIN32
15 #ifdef BUILD_MICO_DLL
16 #define MICO_EXPORT /**/
17 #else // BUILD_MICO_DLL
18 #define MICO_EXPORT __declspec(dllimport)
19 #endif // BUILD_MICO_DLL
20 #else // _WIN32
21 #define MICO_EXPORT /**/
22 #endif // _WIN32
23
24
25
26
27
28
29 namespace CSI
30 {
31
32 const CORBA::ULong OMGVMCID = 324816UL;
33 typedef SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> X509CertificateChain;
34 typedef TSeqVar< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > X509CertificateChain_var;
35 typedef TSeqOut< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > X509CertificateChain_out;
36
37 extern MICO_EXPORT CORBA::TypeCodeConst _tc_X509CertificateChain;
38
39 typedef SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> X501DistinguishedName;
40 typedef TSeqVar< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > X501DistinguishedName_var;
41 typedef TSeqOut< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > X501DistinguishedName_out;
42
43 extern MICO_EXPORT CORBA::TypeCodeConst _tc_X501DistinguishedName;
44
45 typedef SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> UTF8String;
46 typedef TSeqVar< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > UTF8String_var;
47 typedef TSeqOut< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > UTF8String_out;
48
49 extern MICO_EXPORT CORBA::TypeCodeConst _tc_UTF8String;
50
51 typedef SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> GSSToken;
52 typedef TSeqVar< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > GSSToken_var;
53 typedef TSeqOut< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > GSSToken_out;
54
55 extern MICO_EXPORT CORBA::TypeCodeConst _tc_GSSToken;
56
57 typedef SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> GSS_NT_ExportedName;
58 typedef TSeqVar< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > GSS_NT_ExportedName_var;
59 typedef TSeqOut< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > GSS_NT_ExportedName_out;
60
61 extern MICO_EXPORT CORBA::TypeCodeConst _tc_GSS_NT_ExportedName;
62
63 typedef SequenceTmpl< GSS_NT_ExportedName,MICO_TID_DEF> GSS_NT_ExportedNameList;
64 typedef TSeqVar< SequenceTmpl< GSS_NT_ExportedName,MICO_TID_DEF> > GSS_NT_ExportedNameList_var;
65 typedef TSeqOut< SequenceTmpl< GSS_NT_ExportedName,MICO_TID_DEF> > GSS_NT_ExportedNameList_out;
66
67 extern MICO_EXPORT CORBA::TypeCodeConst _tc_GSS_NT_ExportedNameList;
68
69 typedef CORBA::Short MsgType;
70 typedef MsgType& MsgType_out;
71 extern MICO_EXPORT CORBA::TypeCodeConst _tc_MsgType;
72
73 const MsgType MTEstablishContext = 0;
74 const MsgType MTCompleteEstablishContext = 1;
75 const MsgType MTContextError = 4;
76 const MsgType MTMessageInContext = 5;
77 typedef CORBA::ULongLong ContextId;
78 typedef ContextId& ContextId_out;
79 extern MICO_EXPORT CORBA::TypeCodeConst _tc_ContextId;
80
81 typedef CORBA::ULong AuthorizationElementType;
82 typedef AuthorizationElementType& AuthorizationElementType_out;
83 extern MICO_EXPORT CORBA::TypeCodeConst _tc_AuthorizationElementType;
84
85 const AuthorizationElementType X509AttributeCertChain = 324817;
86 typedef SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> AuthorizationElementContents;
87 typedef TSeqVar< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > AuthorizationElementContents_var;
88 typedef TSeqOut< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > AuthorizationElementContents_out;
89
90 extern MICO_EXPORT CORBA::TypeCodeConst _tc_AuthorizationElementContents;
91
92 struct AuthorizationElement;
93 typedef TVarVar< AuthorizationElement > AuthorizationElement_var;
94 typedef TVarOut< AuthorizationElement > AuthorizationElement_out;
95
96
97 struct AuthorizationElement {
98   #ifdef HAVE_TYPEDEF_OVERLOAD
99   typedef AuthorizationElement_var _var_type;
100   #endif
101   #ifdef HAVE_EXPLICIT_STRUCT_OPS
102   AuthorizationElement();
103   ~AuthorizationElement();
104   AuthorizationElement( const AuthorizationElement& s );
105   AuthorizationElement& operator=( const AuthorizationElement& s );
106   #endif //HAVE_EXPLICIT_STRUCT_OPS
107
108   AuthorizationElementType the_type;
109   AuthorizationElementContents the_element;
110 };
111
112 extern MICO_EXPORT CORBA::TypeCodeConst _tc_AuthorizationElement;
113
114 typedef SequenceTmpl< AuthorizationElement,MICO_TID_DEF> AuthorizationToken;
115 typedef TSeqVar< SequenceTmpl< AuthorizationElement,MICO_TID_DEF> > AuthorizationToken_var;
116 typedef TSeqOut< SequenceTmpl< AuthorizationElement,MICO_TID_DEF> > AuthorizationToken_out;
117
118 extern MICO_EXPORT CORBA::TypeCodeConst _tc_AuthorizationToken;
119
120 typedef CORBA::ULong IdentityTokenType;
121 typedef IdentityTokenType& IdentityTokenType_out;
122 extern MICO_EXPORT CORBA::TypeCodeConst _tc_IdentityTokenType;
123
124 const IdentityTokenType ITTAbsent = 0;
125 const IdentityTokenType ITTAnonymous = 1;
126 const IdentityTokenType ITTPrincipalName = 2;
127 const IdentityTokenType ITTX509CertChain = 4;
128 const IdentityTokenType ITTDistinguishedName = 8;
129 typedef SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> IdentityExtension;
130 typedef TSeqVar< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > IdentityExtension_var;
131 typedef TSeqOut< SequenceTmpl< CORBA::Octet,MICO_TID_OCTET> > IdentityExtension_out;
132
133 extern MICO_EXPORT CORBA::TypeCodeConst _tc_IdentityExtension;
134
135 class IdentityToken;
136 typedef TVarVar< IdentityToken > IdentityToken_var;
137 typedef TVarOut< IdentityToken > IdentityToken_out;
138
139
140 class IdentityToken {
141   public:
142     #ifdef HAVE_TYPEDEF_OVERLOAD
143     typedef IdentityToken_var _var_type;
144     #endif
145     IdentityTokenType _discriminator;
146
147     struct __m {
148       CORBA::Boolean absent;
149       CORBA::Boolean anonymous;
150       GSS_NT_ExportedName principal_name;
151       X509CertificateChain certificate_chain;
152       X501DistinguishedName dn;
153       IdentityExtension id;
154     } _m;
155
156   public:
157     #ifdef HAVE_EXPLICIT_STRUCT_OPS
158     IdentityToken();
159     ~IdentityToken();
160     IdentityToken( const IdentityToken& s );
161     IdentityToken& operator=( const IdentityToken& s );
162     #endif //HAVE_EXPLICIT_STRUCT_OPS
163
164
165     void _d( IdentityTokenType _p );
166     IdentityTokenType _d() const;
167
168     void absent( CORBA::Boolean _p );
169     CORBA::Boolean absent() const;
170
171     void anonymous( CORBA::Boolean _p );
172     CORBA::Boolean anonymous() const;
173
174     void principal_name( const GSS_NT_ExportedName& _p );
175     const GSS_NT_ExportedName& principal_name() const;
176     GSS_NT_ExportedName& principal_name();
177
178     void certificate_chain( const X509CertificateChain& _p );
179     const X509CertificateChain& certificate_chain() const;
180     X509CertificateChain& certificate_chain();
181
182     void dn( const X501DistinguishedName& _p );
183     const X501DistinguishedName& dn() const;
184     X501DistinguishedName& dn();
185
186     void id( const IdentityExtension& _p );
187     const IdentityExtension& id() const;
188     IdentityExtension& id();
189
190 };
191
192 extern MICO_EXPORT CORBA::TypeCodeConst _tc_IdentityToken;
193
194 struct EstablishContext;
195 typedef TVarVar< EstablishContext > EstablishContext_var;
196 typedef TVarOut< EstablishContext > EstablishContext_out;
197
198
199 struct EstablishContext {
200   #ifdef HAVE_TYPEDEF_OVERLOAD
201   typedef EstablishContext_var _var_type;
202   #endif
203   #ifdef HAVE_EXPLICIT_STRUCT_OPS
204   EstablishContext();
205   ~EstablishContext();
206   EstablishContext( const EstablishContext& s );
207   EstablishContext& operator=( const EstablishContext& s );
208   #endif //HAVE_EXPLICIT_STRUCT_OPS
209
210   ContextId client_context_id;
211   AuthorizationToken authorization_token;
212   IdentityToken identity_token;
213   GSSToken client_authentication_token;
214 };
215
216 extern MICO_EXPORT CORBA::TypeCodeConst _tc_EstablishContext;
217
218 struct CompleteEstablishContext;
219 typedef TVarVar< CompleteEstablishContext > CompleteEstablishContext_var;
220 typedef TVarOut< CompleteEstablishContext > CompleteEstablishContext_out;
221
222
223 struct CompleteEstablishContext {
224   #ifdef HAVE_TYPEDEF_OVERLOAD
225   typedef CompleteEstablishContext_var _var_type;
226   #endif
227   #ifdef HAVE_EXPLICIT_STRUCT_OPS
228   CompleteEstablishContext();
229   ~CompleteEstablishContext();
230   CompleteEstablishContext( const CompleteEstablishContext& s );
231   CompleteEstablishContext& operator=( const CompleteEstablishContext& s );
232   #endif //HAVE_EXPLICIT_STRUCT_OPS
233
234   ContextId client_context_id;
235   CORBA::Boolean context_stateful;
236   GSSToken final_context_token;
237 };
238
239 extern MICO_EXPORT CORBA::TypeCodeConst _tc_CompleteEstablishContext;
240
241 struct ContextError;
242 typedef TVarVar< ContextError > ContextError_var;
243 typedef TVarOut< ContextError > ContextError_out;
244
245
246 struct ContextError {
247   #ifdef HAVE_TYPEDEF_OVERLOAD
248   typedef ContextError_var _var_type;
249   #endif
250   #ifdef HAVE_EXPLICIT_STRUCT_OPS
251   ContextError();
252   ~ContextError();
253   ContextError( const ContextError& s );
254   ContextError& operator=( const ContextError& s );
255   #endif //HAVE_EXPLICIT_STRUCT_OPS
256
257   ContextId client_context_id;
258   CORBA::Long major_status;
259   CORBA::Long minor_status;
260   GSSToken error_token;
261 };
262
263 extern MICO_EXPORT CORBA::TypeCodeConst _tc_ContextError;
264
265 struct MessageInContext;
266 typedef TFixVar< MessageInContext > MessageInContext_var;
267 typedef MessageInContext& MessageInContext_out;
268
269
270 struct MessageInContext {
271   #ifdef HAVE_TYPEDEF_OVERLOAD
272   typedef MessageInContext_var _var_type;
273   #endif
274   #ifdef HAVE_EXPLICIT_STRUCT_OPS
275   MessageInContext();
276   ~MessageInContext();
277   MessageInContext( const MessageInContext& s );
278   MessageInContext& operator=( const MessageInContext& s );
279   #endif //HAVE_EXPLICIT_STRUCT_OPS
280
281   ContextId client_context_id;
282   CORBA::Boolean discard_context;
283 };
284
285 extern MICO_EXPORT CORBA::TypeCodeConst _tc_MessageInContext;
286
287 class SASContextBody;
288 typedef TVarVar< SASContextBody > SASContextBody_var;
289 typedef TVarOut< SASContextBody > SASContextBody_out;
290
291
292 class SASContextBody {
293   public:
294     #ifdef HAVE_TYPEDEF_OVERLOAD
295     typedef SASContextBody_var _var_type;
296     #endif
297     MsgType _discriminator;
298
299     struct __m {
300       EstablishContext establish_msg;
301       CompleteEstablishContext complete_msg;
302       ContextError error_msg;
303       MessageInContext in_context_msg;
304     } _m;
305
306   public:
307     #ifdef HAVE_EXPLICIT_STRUCT_OPS
308     SASContextBody();
309     ~SASContextBody();
310     SASContextBody( const SASContextBody& s );
311     SASContextBody& operator=( const SASContextBody& s );
312     #endif //HAVE_EXPLICIT_STRUCT_OPS
313
314
315     void _d( MsgType _p );
316     MsgType _d() const;
317
318     void establish_msg( const EstablishContext& _p );
319     const EstablishContext& establish_msg() const;
320     EstablishContext& establish_msg();
321
322     void complete_msg( const CompleteEstablishContext& _p );
323     const CompleteEstablishContext& complete_msg() const;
324     CompleteEstablishContext& complete_msg();
325
326     void error_msg( const ContextError& _p );
327     const ContextError& error_msg() const;
328     ContextError& error_msg();
329
330     void in_context_msg( const MessageInContext& _p );
331     const MessageInContext& in_context_msg() const;
332     MessageInContext& in_context_msg();
333
334     void _default();
335
336 };
337
338 extern MICO_EXPORT CORBA::TypeCodeConst _tc_SASContextBody;
339
340 typedef char* StringOID;
341 typedef CORBA::String_var StringOID_var;
342 typedef CORBA::String_out StringOID_out;
343
344 extern MICO_EXPORT CORBA::TypeCodeConst _tc_StringOID;
345
346 const StringOID KRB5MechOID = "oid:1.2.840.113554.1.2.2";
347 const StringOID GSS_NT_Export_Name_OID = "oid:1.3.6.1.5.6.4";
348 const StringOID GSS_NT_Scoped_Username_OID = "oid:2.23.130.1.2.1";
349 }
350
351
352 #ifndef MICO_CONF_NO_POA
353
354 #endif // MICO_CONF_NO_POA
355
356 void operator<<=( CORBA::Any &_a, const ::CSI::AuthorizationElement &_s );
357 void operator<<=( CORBA::Any &_a, ::CSI::AuthorizationElement *_s );
358 CORBA::Boolean operator>>=( const CORBA::Any &_a, ::CSI::AuthorizationElement &_s );
359 CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::CSI::AuthorizationElement *&_s );
360
361 extern MICO_EXPORT CORBA::StaticTypeInfo *_marshaller_CSI_AuthorizationElement;
362
363 void operator<<=( CORBA::Any &_a, const ::CSI::IdentityToken &_u );
364 void operator<<=( CORBA::Any &_a, ::CSI::IdentityToken *_u );
365 CORBA::Boolean operator>>=( const CORBA::Any &_a, ::CSI::IdentityToken &_u );
366 CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::CSI::IdentityToken *&_u );
367
368 extern MICO_EXPORT CORBA::StaticTypeInfo *_marshaller_CSI_IdentityToken;
369
370 void operator<<=( CORBA::Any &_a, const ::CSI::EstablishContext &_s );
371 void operator<<=( CORBA::Any &_a, ::CSI::EstablishContext *_s );
372 CORBA::Boolean operator>>=( const CORBA::Any &_a, ::CSI::EstablishContext &_s );
373 CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::CSI::EstablishContext *&_s );
374
375 extern MICO_EXPORT CORBA::StaticTypeInfo *_marshaller_CSI_EstablishContext;
376
377 void operator<<=( CORBA::Any &_a, const ::CSI::CompleteEstablishContext &_s );
378 void operator<<=( CORBA::Any &_a, ::CSI::CompleteEstablishContext *_s );
379 CORBA::Boolean operator>>=( const CORBA::Any &_a, ::CSI::CompleteEstablishContext &_s );
380 CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::CSI::CompleteEstablishContext *&_s );
381
382 extern MICO_EXPORT CORBA::StaticTypeInfo *_marshaller_CSI_CompleteEstablishContext;
383
384 void operator<<=( CORBA::Any &_a, const ::CSI::ContextError &_s );
385 void operator<<=( CORBA::Any &_a, ::CSI::ContextError *_s );
386 CORBA::Boolean operator>>=( const CORBA::Any &_a, ::CSI::ContextError &_s );
387 CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::CSI::ContextError *&_s );
388
389 extern MICO_EXPORT CORBA::StaticTypeInfo *_marshaller_CSI_ContextError;
390
391 void operator<<=( CORBA::Any &_a, const ::CSI::MessageInContext &_s );
392 void operator<<=( CORBA::Any &_a, ::CSI::MessageInContext *_s );
393 CORBA::Boolean operator>>=( const CORBA::Any &_a, ::CSI::MessageInContext &_s );
394 CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::CSI::MessageInContext *&_s );
395
396 extern MICO_EXPORT CORBA::StaticTypeInfo *_marshaller_CSI_MessageInContext;
397
398 void operator<<=( CORBA::Any &_a, const ::CSI::SASContextBody &_u );
399 void operator<<=( CORBA::Any &_a, ::CSI::SASContextBody *_u );
400 CORBA::Boolean operator>>=( const CORBA::Any &_a, ::CSI::SASContextBody &_u );
401 CORBA::Boolean operator>>=( const CORBA::Any &_a, const ::CSI::SASContextBody *&_u );
402
403 extern MICO_EXPORT CORBA::StaticTypeInfo *_marshaller_CSI_SASContextBody;
404
405 void operator<<=( CORBA::Any &_a, const SequenceTmpl< CSI::AuthorizationElement,MICO_TID_DEF> &_s );
406 void operator<<=( CORBA::Any &_a, SequenceTmpl< CSI::AuthorizationElement,MICO_TID_DEF> *_s );
407 CORBA::Boolean operator>>=( const CORBA::Any &_a, SequenceTmpl< CSI::AuthorizationElement,MICO_TID_DEF> &_s );
408 CORBA::Boolean operator>>=( const CORBA::Any &_a, const SequenceTmpl< CSI::AuthorizationElement,MICO_TID_DEF> *&_s );
409
410 extern MICO_EXPORT CORBA::StaticTypeInfo *_marshaller__seq_CSI_AuthorizationElement;
411
412 #endif