199767f8919635c4928607450d9e0abb932109ceToomas Soome/* LINTLIBRARY */
199767f8919635c4928607450d9e0abb932109ceToomas Soome/* PROTOLIB1 */
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome/*
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Use is subject to license terms.
199767f8919635c4928607450d9e0abb932109ceToomas Soome */
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#ident "%Z%%M% %I% %E% SMI"
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#include <sasl/sasl.h>
199767f8919635c4928607450d9e0abb932109ceToomas Soome#include <sasl/saslplug.h>
199767f8919635c4928607450d9e0abb932109ceToomas Soome#include <sasl/saslutil.h>
199767f8919635c4928607450d9e0abb932109ceToomas Soome#include <sasl/prop.h>
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomevoid *sasl_create_context(void);
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomevoid sasl_free_context(void *context);
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern int _sasl_server_init(void *ctx, const sasl_callback_t *callbacks,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const char *appname);
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern int _sasl_server_new(void *ctx, const char *service,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const char *serverFQDN, const char *user_realm,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const char *iplocalport, const char *ipremoteport,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const sasl_callback_t *callbacks, unsigned flags,
199767f8919635c4928607450d9e0abb932109ceToomas Soome sasl_conn_t **pconn);
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern int _sasl_client_init(void *ctx,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const sasl_callback_t *callbacks);
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern int _sasl_client_new(void *ctx,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const char *service,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const char *serverFQDN,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const char *iplocalport,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const char *ipremoteport,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const sasl_callback_t *prompt_supp,
199767f8919635c4928607450d9e0abb932109ceToomas Soome unsigned flags,
199767f8919635c4928607450d9e0abb932109ceToomas Soome sasl_conn_t **pconn);
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern int _sasl_client_add_plugin(void *ctx,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const char *plugname,
199767f8919635c4928607450d9e0abb932109ceToomas Soome sasl_client_plug_init_t *cplugfunc);
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern int _sasl_server_add_plugin(void *ctx,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const char *plugname,
199767f8919635c4928607450d9e0abb932109ceToomas Soome sasl_server_plug_init_t *splugfunc);
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern int _sasl_canonuser_add_plugin(void *ctx,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const char *plugname,
199767f8919635c4928607450d9e0abb932109ceToomas Soome sasl_canonuser_init_t *canonuserfunc);
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern int _sasl_auxprop_add_plugin(void *ctx,
199767f8919635c4928607450d9e0abb932109ceToomas Soome const char *plugname,
199767f8919635c4928607450d9e0abb932109ceToomas Soome sasl_auxprop_init_t *auxpropfunc);
199767f8919635c4928607450d9e0abb932109ceToomas Soome