xref: /titanic_41/usr/src/lib/libsasl/lib/llib-lsasl (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1/* LINTLIBRARY */
2/* PROTOLIB1 */
3
4/*
5 * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
6 * Use is subject to license terms.
7 */
8
9#ident	"%Z%%M%	%I%	%E% SMI"
10
11#include <sasl/sasl.h>
12#include <sasl/saslplug.h>
13#include <sasl/saslutil.h>
14#include <sasl/prop.h>
15
16void *sasl_create_context(void);
17
18void sasl_free_context(void *context);
19
20extern int _sasl_server_init(void *ctx, const sasl_callback_t *callbacks,
21		     const char *appname);
22
23extern int _sasl_server_new(void *ctx, const char *service,
24			    const char *serverFQDN, const char *user_realm,
25			    const char *iplocalport, const char *ipremoteport,
26			    const sasl_callback_t *callbacks, unsigned flags,
27			    sasl_conn_t **pconn);
28
29extern int _sasl_client_init(void *ctx,
30			     const sasl_callback_t *callbacks);
31
32extern int _sasl_client_new(void *ctx,
33			    const char *service,
34			    const char *serverFQDN,
35			    const char *iplocalport,
36			    const char *ipremoteport,
37			    const sasl_callback_t *prompt_supp,
38			    unsigned flags,
39			    sasl_conn_t **pconn);
40
41extern int _sasl_client_add_plugin(void *ctx,
42                                   const char *plugname,
43                                   sasl_client_plug_init_t *cplugfunc);
44extern int _sasl_server_add_plugin(void *ctx,
45                                   const char *plugname,
46                                   sasl_server_plug_init_t *splugfunc);
47extern int _sasl_canonuser_add_plugin(void *ctx,
48                                      const char *plugname,
49                                      sasl_canonuser_init_t *canonuserfunc);
50extern int _sasl_auxprop_add_plugin(void *ctx,
51                                    const char *plugname,
52                                    sasl_auxprop_init_t *auxpropfunc);
53