YAZ  5.23.1
z-accform1.h
Go to the documentation of this file.
1 
7 #ifndef z_accform1_H
8 #define z_accform1_H
9 
10 #include <yaz/odr.h>
11 #include <yaz/z-core.h>
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
17 YAZ_EXPORT int z_PromptObject1(ODR o, Z_PromptObject1 **p, int opt, const char *name);
18 
20 YAZ_EXPORT int z_ChallengeUnit1(ODR o, Z_ChallengeUnit1 **p, int opt, const char *name);
21 
22 typedef struct Z_Challenge1 Z_Challenge1;
23 YAZ_EXPORT int z_Challenge1(ODR o, Z_Challenge1 **p, int opt, const char *name);
24 
26 YAZ_EXPORT int z_ResponseUnit1(ODR o, Z_ResponseUnit1 **p, int opt, const char *name);
27 
28 typedef struct Z_Response1 Z_Response1;
29 YAZ_EXPORT int z_Response1(ODR o, Z_Response1 **p, int opt, const char *name);
30 
32 YAZ_EXPORT int z_PromptIdEnumeratedPrompt(ODR o, Z_PromptIdEnumeratedPrompt **p, int opt, const char *name);
33 
34 typedef struct Z_PromptId Z_PromptId;
35 YAZ_EXPORT int z_PromptId(ODR o, Z_PromptId **p, int opt, const char *name);
36 
37 typedef struct Z_Encryption Z_Encryption;
38 YAZ_EXPORT int z_Encryption(ODR o, Z_Encryption **p, int opt, const char *name);
39 #ifdef __cplusplus
40 }
41 #endif
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
46  int which;
47  union {
50 #define Z_PromptObject1_challenge 1
51 #define Z_PromptObject1_response 2
52  } u;
53 };
54 
58  int which;
59  union {
62 #define Z_ChallengeUnit1_character 1
63 #define Z_ChallengeUnit1_encrypted 2
64  } u; /* OPT */
69  Odr_null *shouldSave; /* OPT */
70 #define Z_ChallengeUnit1_integer 1
71 #define Z_ChallengeUnit1_date 2
72 #define Z_ChallengeUnit1_float 3
73 #define Z_ChallengeUnit1_alphaNumeric 4
74 #define Z_ChallengeUnit1_url_urn 5
75 #define Z_ChallengeUnit1_boolean 6
76  Odr_int *dataType; /* OPT */
77  Z_External *diagnostic; /* OPT */
78 };
79 
80 struct Z_Challenge1 {
81  int num;
83 };
84 
87  int which;
88  union {
94 #define Z_ResponseUnit1_string 1
95 #define Z_ResponseUnit1_accept 2
96 #define Z_ResponseUnit1_acknowledge 3
97 #define Z_ResponseUnit1_diagnostic 4
98 #define Z_ResponseUnit1_encrypted 5
99  } u;
100 };
101 
102 struct Z_Response1 {
103  int num;
105 };
106 
108 #define Z_PromptIdEnumeratedPrompt_groupId 0
109 #define Z_PromptIdEnumeratedPrompt_userId 1
110 #define Z_PromptIdEnumeratedPrompt_password 2
111 #define Z_PromptIdEnumeratedPrompt_newPassword 3
112 #define Z_PromptIdEnumeratedPrompt_copyright 4
113 #define Z_PromptIdEnumeratedPrompt_sessionId 5
116 };
117 
118 struct Z_PromptId {
119  int which;
120  union {
123 #define Z_PromptId_enumeratedPrompt 1
124 #define Z_PromptId_nonEnumeratedPrompt 2
125  } u;
126 };
127 
128 struct Z_Encryption {
129  Odr_oct *cryptType; /* OPT */
130  Odr_oct *credential; /* OPT */
132 };
133 
134 #ifdef __cplusplus
135 }
136 #endif
137 #endif
Header for ODR (Open Data Representation)
char Z_InternationalString
Definition: z-core.h:301
ASN.1 Module Z39-50-APDU-1995.
Odr_null * responseRequired
Definition: z-accform1.h:66
Z_InternationalString * suggestedString
Definition: z-accform1.h:115
char * name
Definition: initopt.c:18
Odr_null * shouldSave
Definition: z-accform1.h:69
int z_PromptId(ODR o, Z_PromptId **p, int opt, const char *name)
Definition: z-accform1.c:127
Z_Encryption * encrypted
Definition: z-accform1.h:93
Odr_null * acknowledge
Definition: z-accform1.h:91
nmem_int_t Odr_int
Definition: odr.h:47
int z_Challenge1(ODR o, Z_Challenge1 **p, int opt, const char *name)
Definition: z-accform1.c:65
Z_InternationalString * regExpr
Definition: z-accform1.h:65
Z_Encryption * encrypted
Definition: z-accform1.h:61
Odr_oct * credential
Definition: z-accform1.h:130
union Z_PromptObject1::@35 u
Z_Response1 * response
Definition: z-accform1.h:49
int z_ResponseUnit1(ODR o, Z_ResponseUnit1 **p, int opt, const char *name)
Definition: z-accform1.c:77
int z_Response1(ODR o, Z_Response1 **p, int opt, const char *name)
Definition: z-accform1.c:103
int z_PromptIdEnumeratedPrompt(ODR o, Z_PromptIdEnumeratedPrompt **p, int opt, const char *name)
Definition: z-accform1.c:115
Odr_bool * accept
Definition: z-accform1.h:90
int z_PromptObject1(ODR o, Z_PromptObject1 **p, int opt, const char *name)
Definition: z-accform1.c:12
Z_InternationalString * defaultResponse
Definition: z-accform1.h:57
Odr_oct * data
Definition: z-accform1.h:131
Odr_int * dataType
Definition: z-accform1.h:76
nmem_bool_t Odr_bool
Definition: odr.h:48
Z_PromptId * promptId
Definition: z-accform1.h:56
Z_PromptIdEnumeratedPrompt * enumeratedPrompt
Definition: z-accform1.h:121
Definition: odr.h:99
Z_PromptId * promptId
Definition: z-accform1.h:86
Z_Challenge1 * challenge
Definition: z-accform1.h:48
Definition: odr.h:124
Z_InternationalString ** allowedValues
Definition: z-accform1.h:68
int z_Encryption(ODR o, Z_Encryption **p, int opt, const char *name)
Definition: z-accform1.c:145
int z_ChallengeUnit1(ODR o, Z_ChallengeUnit1 **p, int opt, const char *name)
Definition: z-accform1.c:30
Odr_oct * cryptType
Definition: z-accform1.h:129
int opt
Definition: initopt.c:19
Z_ChallengeUnit1 ** elements
Definition: z-accform1.h:82
structure for all known EXTERNALs
Definition: prt-ext.h:58
Z_ResponseUnit1 ** elements
Definition: z-accform1.h:104
Z_InternationalString * character
Definition: z-accform1.h:60
Z_External * diagnostic
Definition: z-accform1.h:77
Z_InternationalString * nonEnumeratedPrompt
Definition: z-accform1.h:122
Z_DiagRec * diagnostic
Definition: z-accform1.h:92
Z_InternationalString * string
Definition: z-accform1.h:89
void Odr_null
Definition: odr.h:105