1 /* Generated automatically by the YAZ ASN.1 Compiler 0.3 */
2 /* Module-H AccessControlFormat-prompt-1 */
8 #include <yaz/z-core.h>
13 typedef struct Z_PromptObject1 Z_PromptObject1;
14 YAZ_EXPORT int z_PromptObject1 (ODR o, Z_PromptObject1 **p, int opt, const char *name);
16 typedef struct Z_ChallengeUnit1 Z_ChallengeUnit1;
17 YAZ_EXPORT int z_ChallengeUnit1 (ODR o, Z_ChallengeUnit1 **p, int opt, const char *name);
19 typedef struct Z_Challenge1 Z_Challenge1;
20 YAZ_EXPORT int z_Challenge1 (ODR o, Z_Challenge1 **p, int opt, const char *name);
22 typedef struct Z_ResponseUnit1 Z_ResponseUnit1;
23 YAZ_EXPORT int z_ResponseUnit1 (ODR o, Z_ResponseUnit1 **p, int opt, const char *name);
25 typedef struct Z_Response1 Z_Response1;
26 YAZ_EXPORT int z_Response1 (ODR o, Z_Response1 **p, int opt, const char *name);
28 typedef struct Z_PromptIdEnumeratedPrompt Z_PromptIdEnumeratedPrompt;
29 YAZ_EXPORT int z_PromptIdEnumeratedPrompt (ODR o, Z_PromptIdEnumeratedPrompt **p, int opt, const char *name);
31 typedef struct Z_PromptId Z_PromptId;
32 YAZ_EXPORT int z_PromptId (ODR o, Z_PromptId **p, int opt, const char *name);
34 typedef struct Z_Encryption Z_Encryption;
35 YAZ_EXPORT int z_Encryption (ODR o, Z_Encryption **p, int opt, const char *name);
42 struct Z_PromptObject1 {
45 Z_Challenge1 *challenge;
46 Z_Response1 *response;
47 #define Z_PromptObject1_challenge 1
48 #define Z_PromptObject1_response 2
52 struct Z_ChallengeUnit1 {
54 Z_InternationalString *defaultResponse; /* OPT */
57 Z_InternationalString *character;
58 Z_Encryption *encrypted;
59 #define Z_ChallengeUnit1_character 1
60 #define Z_ChallengeUnit1_encrypted 2
62 Z_InternationalString *regExpr; /* OPT */
63 Odr_null *responseRequired; /* OPT */
64 int num_allowedValues;
65 Z_InternationalString **allowedValues; /* OPT */
66 Odr_null *shouldSave; /* OPT */
67 #define Z_ChallengeUnit1_integer 1
68 #define Z_ChallengeUnit1_date 2
69 #define Z_ChallengeUnit1_float 3
70 #define Z_ChallengeUnit1_alphaNumeric 4
71 #define Z_ChallengeUnit1_url_urn 5
72 #define Z_ChallengeUnit1_boolean 6
73 int *dataType; /* OPT */
74 Z_External *diagnostic; /* OPT */
79 Z_ChallengeUnit1 **elements;
82 struct Z_ResponseUnit1 {
86 Z_InternationalString *string;
88 Odr_null *acknowledge;
89 Z_DiagRec *diagnostic;
90 Z_Encryption *encrypted;
91 #define Z_ResponseUnit1_string 1
92 #define Z_ResponseUnit1_accept 2
93 #define Z_ResponseUnit1_acknowledge 3
94 #define Z_ResponseUnit1_diagnostic 4
95 #define Z_ResponseUnit1_encrypted 5
101 Z_ResponseUnit1 **elements;
104 struct Z_PromptIdEnumeratedPrompt {
105 #define Z_PromptIdEnumeratedPrompt_groupId 0
106 #define Z_PromptIdEnumeratedPrompt_userId 1
107 #define Z_PromptIdEnumeratedPrompt_password 2
108 #define Z_PromptIdEnumeratedPrompt_newPassword 3
109 #define Z_PromptIdEnumeratedPrompt_copyright 4
110 #define Z_PromptIdEnumeratedPrompt_sessionId 5
112 Z_InternationalString *suggestedString; /* OPT */
118 Z_PromptIdEnumeratedPrompt *enumeratedPrompt;
119 Z_InternationalString *nonEnumeratedPrompt;
120 #define Z_PromptId_enumeratedPrompt 1
121 #define Z_PromptId_nonEnumeratedPrompt 2
125 struct Z_Encryption {
126 Odr_oct *cryptType; /* OPT */
127 Odr_oct *credential; /* OPT */