CICS Transaction Gateway ECI and ESI V2 for C
V9.2.0.2
Main Page
Related Pages
Data Structures
Files
File List
Globals
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.2.0.2
8
Licensed Materials - Property of IBM
9
10
"Restricted Materials of IBM"
11
12
5724-I81,5725-B65,5655-Y20
13
14
(C) Copyright IBM Corp. 2011, 2014
15
16
US Government Users Restricted Rights - Use, duplication or
17
disclosure restricted by GSA ADP Schedule Contract with
18
IBM Corp.
19
20
Status: Version 9 Release 2
21
22
NOTES :-
23
24
This header file is provided with the CICS Transaction Gateway. These
25
products are available for a number of different operating environments
26
and to ensure the correct sections of this header are included, one of
27
the following constants must be defined prior to inclusion:
28
29
CICS_W32 - if building a Windows application
30
CICS_AIX - if building an AIX application
31
CICS_SOL - if building a Solaris application
32
CICS_LNX - if building a Linux application
33
CICS_HPIT and CICS_HPUX -
34
if building an HPUX application on Itanium
35
*/
41
#ifndef _CTG_ESI_H
42
#define _CTG_ESI_H
43
44
#include <time.h>
45
#include "
ctgclient.h
"
46
47
#if defined (CICS_W32) || defined(CICS_WNT)
48
#define CICSCALL __cdecl
49
#else
50
#define CICSCALL
51
#endif
52
53
#if !defined(_LP64) && !defined(__LP64__) && !defined(_WIN64) && !defined(__64BIT__)
54
#if defined(CICS_AIX)
55
#pragma options align=packed
56
#elif defined(CICS_HPUX)
57
#pragma pack 1
58
#else
59
#pragma pack(1)
60
#endif
61
#endif
62
70
typedef
struct
{
71
int
year
;
72
int
month
;
73
int
day
;
74
int
hour
;
75
int
minute
;
76
int
second
;
77
int
hundredths
;
78
}
ESI_DATETIME
;
79
84
typedef
struct
{
88
ESI_DATETIME
lastVerifiedTime
;
92
ESI_DATETIME
lastAccessedTime
;
96
ESI_DATETIME
expiryTime
;
102
int
invalidCount
;
103
}
ESI_DETAILS
;
104
108
#define ESI_SERVER_LENGTH 8
109
139
int
CICSCALL
CTG_ESI_verifyPassword
(
CTG_ConnToken_t
gwTok,
140
const
char
* userid,
141
const
char
* password,
142
const
char
* server,
143
ESI_DETAILS
* esiDetailsPtr);
144
177
int
CICSCALL
CTG_ESI_changePassword
(
CTG_ConnToken_t
gwTok,
178
const
char
* userid,
179
const
char
* oldPassword,
180
const
char
* newPassword,
181
const
char
* server,
182
ESI_DETAILS
* esiDetailsPtr);
183
184
194
struct
tm*
CICSCALL
CTG_ESI_convertTime
(
const
ESI_DATETIME
* esiTime,
195
struct
tm* result);
196
200
#define ESI_NO_ERROR 0
201
204
#define ESI_ERR_USERID_INVALID -300
205
208
#define ESI_ERR_NULL_USERID -301
209
213
#define ESI_ERR_PASSWORD_INVALID -302
214
217
#define ESI_ERR_NULL_PASSWORD -303
218
222
#define ESI_ERR_PEM_NOT_SUPPORTED -304
223
227
#define ESI_ERR_PEM_NOT_ACTIVE -305
228
231
#define ESI_ERR_PASSWORD_EXPIRED -306
232
237
#define ESI_ERR_SECURITY_ERROR -307
238
243
#define ESI_ERR_RESOURCE_SHORTAGE -308
244
248
#define ESI_ERR_NO_SESSIONS -309
249
252
#define ESI_ERR_NO_CICS -310
253
257
#define ESI_ERR_CICS_DIED -311
258
261
#define ESI_ERR_UNKNOWN_SERVER -312
262
267
#define ESI_ERR_SYSTEM_ERROR -313
268
271
#define ESI_ERR_NULL_OLD_PASSWORD ESI_ERR_NULL_PASSWORD
272
275
#define ESI_ERR_NULL_NEW_PASSWORD -314
276
280
#define ESI_ERR_PASSWORD_REJECTED -315
281
285
#define ESI_ERR_MAX_SYSTEMS -316
286
290
#define ESI_ERR_MAX_SESSIONS -317
291
292
293
#if !defined(_LP64) && !defined(__LP64__) && !defined(_WIN64) && !defined(__64BIT__)
294
#if defined(CICS_AIX)
295
#pragma options align=reset
296
#elif defined(CICS_HPUX) && defined(__cplusplus)
297
#pragma pack
298
#elif defined(CICS_HPUX) && defined(CICS_HPIT)
299
#pragma pack
300
#elif defined(CICS_HPUX)
301
#pragma HP_ALIGN HPUX_NATURAL
302
#else
303
#pragma pack()
304
#endif
305
#endif
306
307
#endif
/* _CTG_ESI_H */
source
h
ctgclient_esi.h