File indexing completed on 2025-02-21 10:15:32
0001
0002
0003
0004 #ifndef SASLUTIL_H
0005 #define SASLUTIL_H 1
0006
0007 #ifndef SASL_H
0008 #include "sasl.h"
0009 #endif
0010
0011 #ifdef __cplusplus
0012 extern "C" {
0013 #endif
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 LIBSASL_API int sasl_decode64(const char *in, unsigned inlen,
0028 char *out, unsigned outmax, unsigned *outlen);
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040 LIBSASL_API int sasl_encode64(const char *in, unsigned inlen,
0041 char *out, unsigned outmax, unsigned *outlen);
0042
0043
0044
0045
0046
0047
0048
0049 LIBSASL_API int sasl_mkchal(sasl_conn_t *conn, char *buf,
0050 unsigned maxlen, unsigned hostflag);
0051
0052
0053
0054
0055
0056 LIBSASL_API int sasl_utf8verify(const char *str, unsigned len);
0057
0058
0059 LIBSASL_API int sasl_randcreate(sasl_rand_t **rpool);
0060
0061
0062 LIBSASL_API void sasl_randfree(sasl_rand_t **rpool);
0063
0064
0065 LIBSASL_API void sasl_randseed(sasl_rand_t *rpool, const char *seed,
0066 unsigned len);
0067
0068
0069 LIBSASL_API void sasl_rand(sasl_rand_t *rpool, char *buf, unsigned len);
0070
0071
0072 LIBSASL_API void sasl_churn(sasl_rand_t *rpool, const char *data,
0073 unsigned len);
0074
0075
0076
0077
0078 LIBSASL_API void sasl_erasebuffer(char *pass, unsigned len);
0079
0080
0081 LIBSASL_API char *sasl_strlower (char *val);
0082
0083 LIBSASL_API int sasl_config_init(const char *filename);
0084
0085 LIBSASL_API void sasl_config_done(void);
0086
0087 #ifdef WIN32
0088
0089 #if defined(NEED_GETOPT)
0090 LIBSASL_API int getopt(int argc, char **argv, char *optstring);
0091 #endif
0092 LIBSASL_API char * getpass(const char *prompt);
0093 #endif
0094
0095 #ifdef __cplusplus
0096 }
0097 #endif
0098
0099 #endif