187 const char *auth_prompt, const char *auth_def,
188 const char *pass_prompt, const char *pass_def,
189 const char *echo_chal,
190 const char *echo_prompt, const char *echo_def,
191 const char *realm_chal,
192 const char *realm_prompt, const char *realm_def);
193
194 int _plug_decode(const sasl_utils_t *utils,
195 void *context,
196 const char *input, unsigned inputlen,
197 char **output, unsigned *outputsize, unsigned *outputlen,
198 int (*decode_pkt)(void *context,
199 const char **input, unsigned *inputlen,
200 char **output, unsigned *outputlen));
201
202 int _plug_parseuser(const sasl_utils_t *utils,
203 char **user, char **realm, const char *user_realm,
204 const char *serverFQDN, const char *input);
205
206 #ifdef _INTEGRATED_SOLARIS_
207 /* EXPORT DELETE START */
208 /* CRYPT DELETE START */
209 typedef void reg_sun_t(void *);
210
211 #define REG_PLUG( X, Y ) { \
212 reg_sun_t *func = NULL; \
213 unsigned int l; \
214 utils->getopt(utils->getopt_context, X, "reg_sun_plug", \
215 (const char **)&func, &l); \
216 if (func != NULL && l == 0) \
217 (*func)(Y); \
218 }
219 /* CRYPT DELETE END */
220 /* EXPORT DELETE END */
221
222 int use_locale(const char *lang_list, int is_client);
223 const char *convert_prompt(const sasl_utils_t *utils, void **h, const char *s);
224 char *local_to_utf(const sasl_utils_t *utils, const char *s);
225 #endif /* _INTEGRATED_SOLARIS_ */
226 #endif /* _PLUGIN_COMMON_H_ */
|
187 const char *auth_prompt, const char *auth_def,
188 const char *pass_prompt, const char *pass_def,
189 const char *echo_chal,
190 const char *echo_prompt, const char *echo_def,
191 const char *realm_chal,
192 const char *realm_prompt, const char *realm_def);
193
194 int _plug_decode(const sasl_utils_t *utils,
195 void *context,
196 const char *input, unsigned inputlen,
197 char **output, unsigned *outputsize, unsigned *outputlen,
198 int (*decode_pkt)(void *context,
199 const char **input, unsigned *inputlen,
200 char **output, unsigned *outputlen));
201
202 int _plug_parseuser(const sasl_utils_t *utils,
203 char **user, char **realm, const char *user_realm,
204 const char *serverFQDN, const char *input);
205
206 #ifdef _INTEGRATED_SOLARIS_
207 typedef void reg_sun_t(void *);
208
209 #define REG_PLUG( X, Y ) { \
210 reg_sun_t *func = NULL; \
211 unsigned int l; \
212 utils->getopt(utils->getopt_context, X, "reg_sun_plug", \
213 (const char **)&func, &l); \
214 if (func != NULL && l == 0) \
215 (*func)(Y); \
216 }
217
218 int use_locale(const char *lang_list, int is_client);
219 const char *convert_prompt(const sasl_utils_t *utils, void **h, const char *s);
220 char *local_to_utf(const sasl_utils_t *utils, const char *s);
221 #endif /* _INTEGRATED_SOLARIS_ */
222 #endif /* _PLUGIN_COMMON_H_ */
|