ctgclient_esi.h
Go to the documentation of this file.
1 /*
2  MODULE NAME ctgclient_esi.h
3 
4  DESCRIPTIVE NAME CICS Transaction Gateway ECI and ESI Version 2.3
5  Application Programming Interface, ESI Parts
6 
7  Service level: V9.0.0.2
8  <copyright
9 notice="rm-source-program"
10 pids="5724-I81,5725-B65,5655-Y20"
11 years="2011,2012"
12 crc="1717375942" >
13 Licensed Materials - Property of IBM
14 
15 "Restricted Materials of IBM"
16 
17 5724-I81,5725-B65,5655-Y20
18 
19 (C) Copyright IBM Corp. 2011, 2012
20 
21 US Government Users Restricted Rights - Use, duplication or
22 disclosure restricted by GSA ADP Schedule Contract with
23 IBM Corp.
24 </copyright>
25 
26  Status: Version 9 Release 0
27 
28  NOTES :-
29 
30  This header file is provided with the CICS Transaction Gateway. These
31  products are available for a number of different operating environments
32  and to ensure the correct sections of this header are included, one of
33  the following constants must be defined prior to inclusion:
34 
35  CICS_W32 - if building a Windows application
36  CICS_AIX - if building an AIX application
37  CICS_SOL - if building a Solaris application
38  CICS_LNX - if building a Linux application
39  CICS_HPIT and CICS_HPUX -
40  if building an HPUX application on Itanium
41 */
47 #ifndef _CTG_ESI_H
48 #define _CTG_ESI_H
49 
50 #include <time.h>
51 #include "ctgclient.h"
52 
53 #if defined (CICS_W32) || defined(CICS_WNT)
54  #define CICSCALL __cdecl
55 #else
56  #define CICSCALL
57 #endif
58 
59 #if !defined(_LP64) && !defined(__LP64__) && !defined(_WIN64) && !defined(__64BIT__)
60 #if defined(CICS_AIX)
61 #pragma options align=packed
62 #elif defined(CICS_HPUX)
63 #pragma pack 1
64 #else
65 #pragma pack(1)
66 #endif
67 #endif
68 
76 typedef struct {
77  int year;
78  int month;
79  int day;
80  int hour;
81  int minute;
82  int second;
84 } ESI_DATETIME;
85 
90 typedef struct {
109 } ESI_DETAILS;
110 
114 #define ESI_SERVER_LENGTH 8
115 
145  const char* userid,
146  const char* password,
147  const char* server,
148  ESI_DETAILS* esiDetailsPtr);
149 
182  const char* userid,
183  const char* oldPassword,
184  const char* newPassword,
185  const char* server,
186  ESI_DETAILS* esiDetailsPtr);
187 
188 
198 struct tm* CICSCALL CTG_ESI_convertTime(const ESI_DATETIME* esiTime,
199  struct tm* result);
200 
204 #define ESI_NO_ERROR 0
205 
208 #define ESI_ERR_USERID_INVALID -300
209 
212 #define ESI_ERR_NULL_USERID -301
213 
217 #define ESI_ERR_PASSWORD_INVALID -302
218 
221 #define ESI_ERR_NULL_PASSWORD -303
222 
226 #define ESI_ERR_PEM_NOT_SUPPORTED -304
227 
231 #define ESI_ERR_PEM_NOT_ACTIVE -305
232 
235 #define ESI_ERR_PASSWORD_EXPIRED -306
236 
241 #define ESI_ERR_SECURITY_ERROR -307
242 
247 #define ESI_ERR_RESOURCE_SHORTAGE -308
248 
252 #define ESI_ERR_NO_SESSIONS -309
253 
256 #define ESI_ERR_NO_CICS -310
257 
261 #define ESI_ERR_CICS_DIED -311
262 
265 #define ESI_ERR_UNKNOWN_SERVER -312
266 
271 #define ESI_ERR_SYSTEM_ERROR -313
272 
275 #define ESI_ERR_NULL_OLD_PASSWORD ESI_ERR_NULL_PASSWORD
276 
279 #define ESI_ERR_NULL_NEW_PASSWORD -314
280 
284 #define ESI_ERR_PASSWORD_REJECTED -315
285 
289 #define ESI_ERR_MAX_SYSTEMS -316
290 
294 #define ESI_ERR_MAX_SESSIONS -317
295 
296 
297 #if !defined(_LP64) && !defined(__LP64__) && !defined(_WIN64) && !defined(__64BIT__)
298 #if defined(CICS_AIX)
299 #pragma options align=reset
300 #elif defined(CICS_HPUX) && defined(__cplusplus)
301 #pragma pack
302 #elif defined(CICS_HPUX) && defined(CICS_HPIT)
303 #pragma pack
304 #elif defined(CICS_HPUX)
305 #pragma HP_ALIGN HPUX_NATURAL
306 #else
307 #pragma pack()
308 #endif
309 #endif
310 
311 #endif /* _CTG_ESI_H */