Initial commit
[yaz4j-moved-to-github.git] / dependencies / yaz-2.1.28 / include / yaz / z-accform1.h
1 /** \file z-accform1.h
2     \brief ASN.1 Module AccessControlFormat-prompt-1
3
4     Generated automatically by YAZ ASN.1 Compiler 0.4
5 */
6
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
16 typedef struct Z_PromptObject1 Z_PromptObject1;
17 YAZ_EXPORT int z_PromptObject1 (ODR o, Z_PromptObject1 **p, int opt, const char *name);
18
19 typedef struct Z_ChallengeUnit1 Z_ChallengeUnit1;
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
25 typedef struct Z_ResponseUnit1 Z_ResponseUnit1;
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
31 typedef struct Z_PromptIdEnumeratedPrompt Z_PromptIdEnumeratedPrompt;
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
45 struct Z_PromptObject1 {
46         int which;
47         union {
48                 Z_Challenge1 *challenge;
49                 Z_Response1 *response;
50 #define Z_PromptObject1_challenge 1
51 #define Z_PromptObject1_response 2
52         } u;
53 };
54
55 struct Z_ChallengeUnit1 {
56         Z_PromptId *promptId;
57         Z_InternationalString *defaultResponse; /* OPT */
58         int which;
59         union {
60                 Z_InternationalString *character;
61                 Z_Encryption *encrypted;
62 #define Z_ChallengeUnit1_character 1
63 #define Z_ChallengeUnit1_encrypted 2
64         } u; /* OPT */
65         Z_InternationalString *regExpr; /* OPT */
66         Odr_null *responseRequired; /* OPT */
67         int num_allowedValues;
68         Z_InternationalString **allowedValues; /* 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         int *dataType; /* OPT */
77         Z_External *diagnostic; /* OPT */
78 };
79
80 struct Z_Challenge1 {
81         int num;
82         Z_ChallengeUnit1 **elements;
83 };
84
85 struct Z_ResponseUnit1 {
86         Z_PromptId *promptId;
87         int which;
88         union {
89                 Z_InternationalString *string;
90                 bool_t *accept;
91                 Odr_null *acknowledge;
92                 Z_DiagRec *diagnostic;
93                 Z_Encryption *encrypted;
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;
104         Z_ResponseUnit1 **elements;
105 };
106
107 struct Z_PromptIdEnumeratedPrompt {
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
114         int *type;
115         Z_InternationalString *suggestedString; /* OPT */
116 };
117
118 struct Z_PromptId {
119         int which;
120         union {
121                 Z_PromptIdEnumeratedPrompt *enumeratedPrompt;
122                 Z_InternationalString *nonEnumeratedPrompt;
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 */
131         Odr_oct *data;
132 };
133
134 #ifdef __cplusplus
135 }
136 #endif
137 #endif