xref: /onnv-gate/usr/src/lib/libkmsagent/common/SOAP/KMS_CAStub.h (revision 12720:3db6e0082404)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 
22 /*
23  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24  */
25 
26 /* KMS_CAStub.h
27    Generated by gSOAP 2.7.17 from ../gsoapStubs/CAService/KMS_CA_SOAP.h
28    Copyright(C) 2000-2010, Robert van Engelen, Genivia Inc. All Rights Reserved.
29    This part of the software is released under one of the following licenses:
30    GPL, the gSOAP public license, or Genivia's license for commercial use.
31 */
32 
33 #ifndef KMS_CAStub_H
34 #define KMS_CAStub_H
35 #ifndef WITH_NONAMESPACES
36 #define WITH_NONAMESPACES
37 #endif
38 #ifndef WITH_NOGLOBAL
39 #define WITH_NOGLOBAL
40 #endif
41 #include "stdsoap2.h"
42 
43 namespace KMS_CA {
44 
45 /******************************************************************************\
46  *                                                                            *
47  * Enumerations                                                               *
48  *                                                                            *
49 \******************************************************************************/
50 
51 
52 /******************************************************************************\
53  *                                                                            *
54  * Types with Custom Serializers                                              *
55  *                                                                            *
56 \******************************************************************************/
57 
58 
59 /******************************************************************************\
60  *                                                                            *
61  * Classes and Structs                                                        *
62  *                                                                            *
63 \******************************************************************************/
64 
65 
66 #if 0 /* volatile type: do not declare here, declared elsewhere */
67 
68 #endif
69 
70 #ifndef SOAP_TYPE_KMS_CA_xsd__hexBinary
71 #define SOAP_TYPE_KMS_CA_xsd__hexBinary (18)
72 /* hexBinary schema type: */
73 struct xsd__hexBinary
74 {
75 public:
76 	unsigned char *__ptr;
77 	int __size;
78 };
79 #endif
80 
81 #ifndef SOAP_TYPE_KMS_CA_KMS_CA__RetrieveRootCACertificateResponse
82 #define SOAP_TYPE_KMS_CA_KMS_CA__RetrieveRootCACertificateResponse (22)
83 /* KMS-CA:RetrieveRootCACertificateResponse */
84 struct KMS_CA__RetrieveRootCACertificateResponse
85 {
86 public:
87 	struct xsd__hexBinary RootCACertificate;	/* SOAP 1.2 RPC return element (when namespace qualified) */	/* required element of type xsd:hexBinary */
88 	long AuthenticationHashIterationCount;	/* required element of type xsd:int */
89 	struct xsd__hexBinary ClientAuthenticationChallenge;	/* required element of type xsd:hexBinary */
90 };
91 #endif
92 
93 #ifndef SOAP_TYPE_KMS_CA_KMS_CA__RetrieveRootCACertificate
94 #define SOAP_TYPE_KMS_CA_KMS_CA__RetrieveRootCACertificate (25)
95 /* KMS-CA:RetrieveRootCACertificate */
96 struct KMS_CA__RetrieveRootCACertificate
97 {
98 public:
99 	char *EntityID;	/* optional element of type xsd:string */
100 };
101 #endif
102 
103 #ifndef SOAP_TYPE_KMS_CA_KMS_CA__RetrieveLocalClockResponse
104 #define SOAP_TYPE_KMS_CA_KMS_CA__RetrieveLocalClockResponse (26)
105 /* KMS-CA:RetrieveLocalClockResponse */
106 struct KMS_CA__RetrieveLocalClockResponse
107 {
108 public:
109 	char *CurrentTime;	/* SOAP 1.2 RPC return element (when namespace qualified) */	/* optional element of type xsd:dateTime */
110 };
111 #endif
112 
113 #ifndef SOAP_TYPE_KMS_CA_KMS_CA__RetrieveLocalClock
114 #define SOAP_TYPE_KMS_CA_KMS_CA__RetrieveLocalClock (29)
115 /* KMS-CA:RetrieveLocalClock */
116 struct KMS_CA__RetrieveLocalClock
117 {
118 public:
119 	char *EntityID;	/* optional element of type xsd:string */
120 };
121 #endif
122 
123 #ifndef SOAP_TYPE_KMS_CA_SOAP_ENV__Header
124 #define SOAP_TYPE_KMS_CA_SOAP_ENV__Header (30)
125 /* SOAP Header: */
126 struct SOAP_ENV__Header
127 {
128 #ifdef WITH_NOEMPTYSTRUCT
129 private:
130 	char dummy;	/* dummy member to enable compilation */
131 #endif
132 };
133 #endif
134 
135 #ifndef SOAP_TYPE_KMS_CA_SOAP_ENV__Code
136 #define SOAP_TYPE_KMS_CA_SOAP_ENV__Code (31)
137 /* SOAP Fault Code: */
138 struct SOAP_ENV__Code
139 {
140 public:
141 	char *SOAP_ENV__Value;	/* optional element of type xsd:QName */
142 	struct SOAP_ENV__Code *SOAP_ENV__Subcode;	/* optional element of type SOAP-ENV:Code */
143 };
144 #endif
145 
146 #ifndef SOAP_TYPE_KMS_CA_SOAP_ENV__Detail
147 #define SOAP_TYPE_KMS_CA_SOAP_ENV__Detail (33)
148 /* SOAP-ENV:Detail */
149 struct SOAP_ENV__Detail
150 {
151 public:
152 	int __type;	/* any type of element <fault> (defined below) */
153 	void *fault;	/* transient */
154 	char *__any;
155 };
156 #endif
157 
158 #ifndef SOAP_TYPE_KMS_CA_SOAP_ENV__Reason
159 #define SOAP_TYPE_KMS_CA_SOAP_ENV__Reason (36)
160 /* SOAP-ENV:Reason */
161 struct SOAP_ENV__Reason
162 {
163 public:
164 	char *SOAP_ENV__Text;	/* optional element of type xsd:string */
165 };
166 #endif
167 
168 #ifndef SOAP_TYPE_KMS_CA_SOAP_ENV__Fault
169 #define SOAP_TYPE_KMS_CA_SOAP_ENV__Fault (37)
170 /* SOAP Fault: */
171 struct SOAP_ENV__Fault
172 {
173 public:
174 	char *faultcode;	/* optional element of type xsd:QName */
175 	char *faultstring;	/* optional element of type xsd:string */
176 	char *faultactor;	/* optional element of type xsd:string */
177 	struct SOAP_ENV__Detail *detail;	/* optional element of type SOAP-ENV:Detail */
178 	struct SOAP_ENV__Code *SOAP_ENV__Code;	/* optional element of type SOAP-ENV:Code */
179 	struct SOAP_ENV__Reason *SOAP_ENV__Reason;	/* optional element of type SOAP-ENV:Reason */
180 	char *SOAP_ENV__Node;	/* optional element of type xsd:string */
181 	char *SOAP_ENV__Role;	/* optional element of type xsd:string */
182 	struct SOAP_ENV__Detail *SOAP_ENV__Detail;	/* optional element of type SOAP-ENV:Detail */
183 };
184 #endif
185 
186 /******************************************************************************\
187  *                                                                            *
188  * Typedefs                                                                   *
189  *                                                                            *
190 \******************************************************************************/
191 
192 #ifndef SOAP_TYPE_KMS_CA__QName
193 #define SOAP_TYPE_KMS_CA__QName (5)
194 typedef char *_QName;
195 #endif
196 
197 #ifndef SOAP_TYPE_KMS_CA__XML
198 #define SOAP_TYPE_KMS_CA__XML (6)
199 typedef char *_XML;
200 #endif
201 
202 #ifndef SOAP_TYPE_KMS_CA_xsd__string
203 #define SOAP_TYPE_KMS_CA_xsd__string (7)
204 typedef char *xsd__string;
205 #endif
206 
207 #ifndef SOAP_TYPE_KMS_CA_xsd__float
208 #define SOAP_TYPE_KMS_CA_xsd__float (9)
209 typedef float xsd__float;
210 #endif
211 
212 #ifndef SOAP_TYPE_KMS_CA_xsd__int
213 #define SOAP_TYPE_KMS_CA_xsd__int (11)
214 typedef long xsd__int;
215 #endif
216 
217 #ifndef SOAP_TYPE_KMS_CA_xsd__boolean
218 #define SOAP_TYPE_KMS_CA_xsd__boolean (13)
219 typedef bool xsd__boolean;
220 #endif
221 
222 #ifndef SOAP_TYPE_KMS_CA_xsd__long
223 #define SOAP_TYPE_KMS_CA_xsd__long (15)
224 typedef LONG64 xsd__long;
225 #endif
226 
227 #ifndef SOAP_TYPE_KMS_CA_xsd__dateTime
228 #define SOAP_TYPE_KMS_CA_xsd__dateTime (16)
229 typedef char *xsd__dateTime;
230 #endif
231 
232 #ifndef SOAP_TYPE_KMS_CA_xsd__duration
233 #define SOAP_TYPE_KMS_CA_xsd__duration (17)
234 typedef char *xsd__duration;
235 #endif
236 
237 
238 /******************************************************************************\
239  *                                                                            *
240  * Externals                                                                  *
241  *                                                                            *
242 \******************************************************************************/
243 
244 
245 /******************************************************************************\
246  *                                                                            *
247  * Server-Side Operations                                                     *
248  *                                                                            *
249 \******************************************************************************/
250 
251 
252 SOAP_FMAC5 int SOAP_FMAC6 KMS_CA__RetrieveRootCACertificate(struct soap*, char *EntityID, struct KMS_CA__RetrieveRootCACertificateResponse &result);
253 
254 SOAP_FMAC5 int SOAP_FMAC6 KMS_CA__RetrieveLocalClock(struct soap*, char *EntityID, struct KMS_CA__RetrieveLocalClockResponse &result);
255 
256 /******************************************************************************\
257  *                                                                            *
258  * Server-Side Skeletons to Invoke Service Operations                         *
259  *                                                                            *
260 \******************************************************************************/
261 
262 SOAP_FMAC5 int SOAP_FMAC6 KMS_CA_serve(struct soap*);
263 
264 SOAP_FMAC5 int SOAP_FMAC6 KMS_CA_serve_request(struct soap*);
265 
266 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_KMS_CA__RetrieveRootCACertificate(struct soap*);
267 
268 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_KMS_CA__RetrieveLocalClock(struct soap*);
269 
270 /******************************************************************************\
271  *                                                                            *
272  * Client-Side Call Stubs                                                     *
273  *                                                                            *
274 \******************************************************************************/
275 
276 
277 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_CA__RetrieveRootCACertificate(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *EntityID, struct KMS_CA__RetrieveRootCACertificateResponse &result);
278 
279 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_CA__RetrieveLocalClock(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *EntityID, struct KMS_CA__RetrieveLocalClockResponse &result);
280 
281 } // namespace KMS_CA
282 
283 
284 #endif
285 
286 /* End of KMS_CAStub.h */
287