/illumos-gate/usr/src/lib/libsasl/lib/ |
H A D | external.c | 81 || !sparams->utils 82 || !sparams->utils->conn) 85 if (!sparams->utils->conn->external.auth_id) 105 || !sparams->utils 106 || !sparams->utils->conn 107 || !sparams->utils->getcallback 113 if (!sparams->utils->conn->external.auth_id) 117 (!strcmp(sparams->utils->conn->external.auth_id, "anonymous"))) { 119 sasl_seterror(sparams->utils->conn,0, 122 sasl_seterror(sparams->utils 200 external_server_plug_init(const sasl_utils_t *utils, int max_version, int *out_version, sasl_server_plug_t **pluglist, int *plugcount) argument 439 external_client_plug_init(const sasl_utils_t *utils, int max_version, int *out_version, sasl_client_plug_t **pluglist, int *plugcount) argument [all...] |
H A D | seterror.c | 138 const sasl_utils_t *utils; local 168 utils = ((sasl_server_conn_t *)conn)->sparams->utils; 171 utils = ((sasl_client_conn_t *)conn)->cparams->utils; 174 utils = NULL; 176 if (utils != NULL) { 177 ret = utils->getcallback(conn, SASL_CB_LANGUAGE, &simple_cb, 329 utf8_buf = local_to_utf(utils, *error_buf); 336 utils [all...] |
H A D | canonusr.c | 378 static int _canonuser_internal(const sasl_utils_t *utils, argument 390 if(!utils || !user) return SASL_BADPARAM; 393 in_buf = utils->malloc((ulen + 2) * sizeof(char)); 412 utils->free(in_buf); 417 utils->seterror(utils->conn, 0, gettext("All-whitespace username.")); 419 utils->seterror(utils->conn, 0, "All-whitespace username."); 424 if(utils->conn && utils [all...] |
H A D | checkpw.c | 113 static int _sasl_make_plain_secret(const sasl_utils_t *utils, const char *salt, argument 126 *secret = (sasl_secret_t *)utils->malloc(sizeof(sasl_secret_t) + 219 ret = _sasl_make_plain_secret(sconn->sparams->utils, db_secret, 240 sconn->sparams->utils->free(construct); 251 if (userid) sconn->sparams->utils->free(userid); 337 if (userid) sconn->sparams->utils->free(userid);
|
H A D | client.c | 98 cmechlist->utils= 101 cmechlist->utils=_sasl_alloc_utils(NULL, &global_callbacks); 103 if (cmechlist->utils==NULL) 155 cprevm->plug->mech_free(cprevm->glob_context, cmechlist->utils); 158 cmechlist->utils); 166 _sasl_free_utils(&cmechlist->utils); 234 result = entry_point(cmechlist->utils, SASL_CLIENT_PLUG_VERSION, &version, 507 sasl_free_t *free_func = c_conn->cparams->utils->free; 512 c_conn->cparams->utils); 525 _sasl_free_utils(&(c_conn->cparams->utils)); 584 sasl_utils_t *utils; local [all...] |
H A D | saslutil.c | 258 const sasl_utils_t *utils; local 261 utils = ((sasl_server_conn_t *)conn)->sparams->utils; 263 utils = ((sasl_client_conn_t *)conn)->cparams->utils; 278 utils->rand(utils->rpool, (char *)&randnum, sizeof (randnum));
|
H A D | saslint.h | 257 const sasl_utils_t *utils; /* gotten from plug_init */ member in struct:mech_list 310 const sasl_utils_t *utils; member in struct:cmech_list 379 /* sasl server global utils */ 381 /* sasl global utils for canonusr plugin */ 571 extern int _sasl_free_utils(const sasl_utils_t ** utils); 642 int external_client_plug_init(const sasl_utils_t *utils, 647 int external_server_plug_init(const sasl_utils_t *utils, 714 extern int sasldb_auxprop_plug_init(const sasl_utils_t *utils, 741 extern int internal_canonuser_init(const sasl_utils_t *utils,
|
H A D | server.c | 253 cur->mech->plug->mech_dispose(cur->context, s_conn->sparams->utils); 273 s_conn->sparams->utils); 283 cur->mech->plug->mech_dispose(cur->context, s_conn->sparams->utils); 289 _sasl_free_utils(&s_conn->sparams->utils); 327 mechlist->utils = newutils; 424 result = entry_point(mechlist->utils, SASL_SERVER_PLUG_VERSION, &version, 582 mechlist->utils); 588 _sasl_free_utils(&mechlist->utils); 1279 sasl_utils_t *utils; local 1327 utils [all...] |
H A D | common.c | 1937 sasl_utils_t *utils; local 1950 utils=alloc.malloc(sizeof(sasl_utils_t)); 1952 utils=sasl_ALLOC(sizeof(sasl_utils_t)); 1954 if (utils==NULL) 1957 utils->conn = conn; 1959 sasl_randcreate(&utils->rpool); 1962 utils->getopt = &_sasl_conn_getopt; 1963 utils->getopt_context = conn; 1965 utils->getopt = &_sasl_global_getopt; 1966 utils 2050 _sasl_free_utils(const sasl_utils_t ** utils) argument [all...] |
/illumos-gate/usr/src/lib/sasl_plugins/login/ |
H A D | login.c | 92 text = sparams->utils->malloc(sizeof(server_context_t)); 94 MEMERROR( sparams->utils ); 144 params->utils->log(params->utils->conn, SASL_LOG_ERR, 147 SETERROR(params->utils, "username too long (>1024 characters)"); 154 params->utils->malloc(sizeof(sasl_secret_t) + clientinlen + 1); 156 MEMERROR( params->utils ); 180 params->utils->log(params->utils->conn, SASL_LOG_ERR, 183 SETERROR(params->utils, 253 login_server_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 285 login_server_plug_init(sasl_utils_t *utils, int maxversion, int *out_version, sasl_server_plug_t **pluglist, int *plugcount) argument 503 login_client_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 538 login_client_plug_init(sasl_utils_t *utils, int maxversion, int *out_version, sasl_client_plug_t **pluglist, int *plugcount) argument [all...] |
/illumos-gate/usr/src/lib/sasl_plugins/plain/ |
H A D | plain.c | 88 PARAMERROR( sparams->utils ); 124 params->utils->log(params->utils->conn, SASL_LOG_ERR, 127 SETERROR(params->utils, "Can only find author (no password)"); 139 params->utils->log(params->utils->conn, SASL_LOG_ERR, 142 params->utils->seterror(params->utils->conn, 0, 157 params->utils->log(params->utils 254 plain_server_plug_init(const sasl_utils_t *utils, int maxversion, int *out_version, sasl_server_plug_t **pluglist, int *plugcount) argument 463 plain_client_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 498 plain_client_plug_init(sasl_utils_t *utils, int maxversion, int *out_version, sasl_client_plug_t **pluglist, int *plugcount) argument [all...] |
/illumos-gate/usr/src/lib/sasl_plugins/cram/ |
H A D | cram.c | 85 static char *convert16(unsigned char *in, int inlen, const sasl_utils_t *utils) argument 91 out = utils->malloc(inlen*2+1); 122 text = sparams->utils->malloc(sizeof(server_context_t)); 124 MEMERROR( sparams->utils ); 147 ret= sparams->utils->malloc(15); 173 sparams->utils->rand(sparams->utils->rpool, 177 sparams->utils->rand(sparams->utils->rpool,(char *) temp,4); 184 ret = sparams->utils 469 crammd5_server_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 502 crammd5_server_plug_init(const sasl_utils_t *utils, int maxversion, int *out_version, sasl_server_plug_t **pluglist, int *plugcount) argument 554 make_hashed(sasl_secret_t *sec, char *nonce, int noncelen, const sasl_utils_t *utils) argument 746 crammd5_client_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 781 crammd5_client_plug_init(const sasl_utils_t *utils, int maxversion, int *out_version, sasl_client_plug_t **pluglist, int *plugcount) argument [all...] |
/illumos-gate/usr/src/lib/sasl_plugins/gssapi/ |
H A D | gssapi.c | 108 get_oid(const sasl_utils_t *utils, gss_OID *oid); 138 const sasl_utils_t *utils; member in struct:context 194 sasl_gss_seterror(const sasl_utils_t *utils, OM_uint32 maj, OM_uint32 min) 204 const sasl_utils_t *utils = text->utils; local 211 if(!utils) return; 214 ret = _plug_buf_alloc(utils, &out, &curlen, 256); 231 utils->log(text->utils->conn, SASL_LOG_FAIL, 236 utils 619 gss_new_context(const sasl_utils_t *utils) argument 727 get_oid(const sasl_utils_t *utils, gss_OID *oid) argument 762 gssapi_common_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument [all...] |
/illumos-gate/usr/src/lib/libsasl/include/ |
H A D | saslplug.h | 240 const sasl_utils_t *utils; /* SASL API utility routines -- */ member in struct:sasl_client_params 399 void (*mech_dispose)(void *conn_context, const sasl_utils_t *utils); 405 void (*mech_free)(void *glob_context, const sasl_utils_t *utils); 425 * utils -- utility callback functions 438 typedef int sasl_client_plug_init_t(const sasl_utils_t *utils, 486 const sasl_utils_t *utils; /* SASL API utility routines -- */ member in struct:sasl_server_params 627 void (*mech_dispose)(void *conn_context, const sasl_utils_t *utils); 633 void (*mech_free)(void *glob_context, const sasl_utils_t *utils); 728 * utils -- utility callback functions 742 typedef int sasl_server_plug_init_t(const sasl_utils_t *utils, [all...] |
/illumos-gate/usr/src/lib/libsasl/plugin/ |
H A D | plugin_common.c | 123 int _plug_ipfromstring(const sasl_utils_t *utils, const char *addr, argument 139 if(!utils || !addr || !out) { 140 if(utils) PARAMERROR( utils ); 150 if(utils) PARAMERROR( utils ); 175 if(utils) PARAMERROR( utils ); 181 PARAMERROR( utils ); 188 if(utils) PARAMERRO 237 _plug_iovec_to_buf(const sasl_utils_t *utils, const struct iovec *vec, unsigned numiov, buffer_info_t **output) argument 284 _plug_buf_alloc(const sasl_utils_t *utils, char **rwbuf, unsigned *curlen, unsigned newlen) argument 323 _plug_strdup(const sasl_utils_t * utils, const char *in, char **out, int *outlen) argument 354 _plug_free_string(const sasl_utils_t *utils, char **str) argument 368 _plug_free_secret(const sasl_utils_t *utils, sasl_secret_t **secret) argument 403 _plug_get_simple(const sasl_utils_t *utils, unsigned int id, int required, const char **result, sasl_interact_t **prompt_need) argument 451 _plug_get_password(const sasl_utils_t *utils, sasl_secret_t **password, unsigned int *iscopy, sasl_interact_t **prompt_need) argument 510 _plug_challenge_prompt(const sasl_utils_t *utils, unsigned int id, const char *challenge, const char *promptstr, const char **result, sasl_interact_t **prompt_need) argument 557 _plug_get_realm(const sasl_utils_t *utils, const char **availrealms, const char **realm, sasl_interact_t **prompt_need) argument 602 _plug_make_prompts(const sasl_utils_t *utils, void **h, sasl_interact_t **prompts_res, const char *user_prompt, const char *user_def, const char *auth_prompt, const char *auth_def, const char *pass_prompt, const char *pass_def, const char *echo_chal, const char *echo_prompt, const char *echo_def, const char *realm_chal, const char *realm_prompt, const char *realm_def) argument 712 _plug_decode(const sasl_utils_t *utils, void *context, const char *input, unsigned inputlen, char **output, unsigned *outputsize, unsigned *outputlen, int (*decode_pkt)(void *context, const char **input, unsigned *inputlen, char **output, unsigned *outputlen)) argument 754 _plug_parseuser(const sasl_utils_t *utils, char **user, char **realm, const char *user_realm, const char *serverFQDN, const char *input) argument 859 convert_prompt(const sasl_utils_t *utils, void **h, const char *s) argument 935 local_to_utf(const sasl_utils_t *utils, const char *s) argument [all...] |
/illumos-gate/usr/src/lib/sasl_plugins/digestmd5/ |
H A D | digestmd5.c | 90 static int uef_init(const sasl_utils_t *utils); 233 /* copy of utils from the params structures */ 234 const sasl_utils_t *utils; member in struct:context 328 DigestCalcResponse(const sasl_utils_t * utils, argument 348 utils->MD5Init(&Md5Ctx); 351 utils->MD5Update(&Md5Ctx, pszMethod, strlen((char *) pszMethod)); 353 utils->MD5Update(&Md5Ctx, (unsigned char *) COLON, 1); 355 /* utils->MD5Update(&Md5Ctx, (unsigned char *) "AUTHENTICATE:", 13); */ 356 utils->MD5Update(&Md5Ctx, pszDigestUri, strlen((char *) pszDigestUri)); 359 utils 411 MD5_UTF8_8859_1(const sasl_utils_t * utils, MD5_CTX * ctx, bool In_ISO_8859_1, const unsigned char *base, int len) argument 441 DigestCalcSecret(const sasl_utils_t * utils, unsigned char *pszUserName, unsigned char *pszRealm, unsigned char *Password, int PasswordLen, HASH HA1) argument 480 create_nonce(const sasl_utils_t * utils) argument 532 add_to_challenge(const sasl_utils_t *utils, char **str, unsigned *buflen, unsigned *curlen, char *name, unsigned char *value, bool need_quotes) argument 1662 create_layer_keys(context_t *text, const sasl_utils_t *utils, HASH key, int keylen, char enckey[16], char deckey[16]) argument 2263 digestmd5_common_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 2296 clear_reauth_entry(reauth_entry_t *reauth, enum Context_type type, const sasl_utils_t *utils) argument 2314 digestmd5_common_mech_free(void *glob_context, const sasl_utils_t *utils) argument 2341 DigestCalcHA1FromSecret(context_t * text, const sasl_utils_t * utils, HASH HA1, unsigned char *authorization_id, unsigned char *pszNonce, unsigned char *pszCNonce, HASHHEX SessionKey) argument 2371 create_response(context_t * text, const sasl_utils_t * utils, unsigned char *nonce, unsigned int ncvalue, unsigned char *cnonce, char *qop, char *digesturi, HASH Secret, char *authorization_id, char **response_value) argument 3670 digestmd5_server_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 3707 digestmd5_server_plug_init(sasl_utils_t *utils, int maxversion, int *out_version, sasl_server_plug_t **pluglist, int *plugcount) argument 3803 DigestCalcHA1(context_t * text, const sasl_utils_t * utils, unsigned char *pszUserName, unsigned char *pszRealm, sasl_secret_t * pszPassword, unsigned char *pszAuthorization_id, unsigned char *pszNonce, unsigned char *pszCNonce, HASHHEX SessionKey) argument 3846 calculate_response(context_t * text, const sasl_utils_t * utils, unsigned char *username, unsigned char *realm, unsigned char *nonce, unsigned int ncvalue, unsigned char *cnonce, char *qop, unsigned char *digesturi, sasl_secret_t * passwd, unsigned char *authorization_id, char **response_value) argument 5146 digestmd5_client_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 5188 digestmd5_client_plug_init(sasl_utils_t *utils, int maxversion, int *out_version, sasl_client_plug_t **pluglist, int *plugcount) argument 5253 getSlotID(const sasl_utils_t *utils, CK_MECHANISM_TYPE mech_type, CK_SLOT_ID *slot_id) argument 5334 uef_init(const sasl_utils_t *utils) argument [all...] |