/osnet-11/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 | 135 const sasl_utils_t *utils; local 165 utils = ((sasl_server_conn_t *)conn)->sparams->utils; 168 utils = ((sasl_client_conn_t *)conn)->cparams->utils; 171 utils = NULL; 173 if (utils != NULL) { 174 ret = utils->getcallback(conn, SASL_CB_LANGUAGE, &simple_cb, 332 utf8_buf = local_to_utf(utils, *error_buf); 339 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 | 97 cmechlist->utils= 100 cmechlist->utils=_sasl_alloc_utils(NULL, &global_callbacks); 102 if (cmechlist->utils==NULL) 154 cprevm->plug->mech_free(cprevm->glob_context, cmechlist->utils); 157 cmechlist->utils); 165 _sasl_free_utils(&cmechlist->utils); 237 result = entry_point(cmechlist->utils, SASL_CLIENT_PLUG_VERSION, &version, 518 sasl_free_t *free_func = c_conn->cparams->utils->free; 523 c_conn->cparams->utils); 536 _sasl_free_utils(&(c_conn->cparams->utils)); 595 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 | 266 const sasl_utils_t *utils; /* gotten from plug_init */ member in struct:mech_list 323 const sasl_utils_t *utils; member in struct:cmech_list 392 /* sasl server global utils */ 394 /* sasl global utils for canonusr plugin */ 584 extern int _sasl_free_utils(const sasl_utils_t ** utils); 655 int external_client_plug_init(const sasl_utils_t *utils, 660 int external_server_plug_init(const sasl_utils_t *utils, 727 extern int sasldb_auxprop_plug_init(const sasl_utils_t *utils, 754 extern int internal_canonuser_init(const sasl_utils_t *utils,
|
H A D | server.c | 252 cur->mech->plug->mech_dispose(cur->context, s_conn->sparams->utils); 272 s_conn->sparams->utils); 282 cur->mech->plug->mech_dispose(cur->context, s_conn->sparams->utils); 288 _sasl_free_utils(&s_conn->sparams->utils); 326 mechlist->utils = newutils; 427 result = entry_point(mechlist->utils, SASL_SERVER_PLUG_VERSION, &version, 593 mechlist->utils); 599 _sasl_free_utils(&mechlist->utils); 1290 sasl_utils_t *utils; local 1338 utils [all...] |
H A D | common.c | 1959 sasl_utils_t *utils; local 1972 utils=alloc.malloc(sizeof(sasl_utils_t)); 1974 utils=sasl_ALLOC(sizeof(sasl_utils_t)); 1976 if (utils==NULL) 1979 utils->conn = conn; 1981 sasl_randcreate(&utils->rpool); 1984 utils->getopt = &_sasl_conn_getopt; 1985 utils->getopt_context = conn; 1987 utils->getopt = &_sasl_global_getopt; 1988 utils 2072 _sasl_free_utils(const sasl_utils_t ** utils) argument [all...] |
/osnet-11/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...] |
/osnet-11/usr/src/lib/sasl_plugins/cram/ |
H A D | cram.c | 83 static char *convert16(unsigned char *in, int inlen, const sasl_utils_t *utils) argument 89 out = utils->malloc(inlen*2+1); 120 text = sparams->utils->malloc(sizeof(server_context_t)); 122 MEMERROR( sparams->utils ); 145 ret= sparams->utils->malloc(15); 171 sparams->utils->rand(sparams->utils->rpool, 175 sparams->utils->rand(sparams->utils->rpool,(char *) temp,4); 182 ret = sparams->utils 467 crammd5_server_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 500 crammd5_server_plug_init(const sasl_utils_t *utils, int maxversion, int *out_version, sasl_server_plug_t **pluglist, int *plugcount) argument 552 make_hashed(sasl_secret_t *sec, char *nonce, int noncelen, const sasl_utils_t *utils) argument 744 crammd5_client_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 779 crammd5_client_plug_init(const sasl_utils_t *utils, int maxversion, int *out_version, sasl_client_plug_t **pluglist, int *plugcount) argument [all...] |
/osnet-11/usr/src/lib/libsasl/include/ |
H A D | saslplug.h | 237 const sasl_utils_t *utils; /* SASL API utility routines -- */ member in struct:sasl_client_params 396 void (*mech_dispose)(void *conn_context, const sasl_utils_t *utils); 402 void (*mech_free)(void *glob_context, const sasl_utils_t *utils); 422 * utils -- utility callback functions 435 typedef int sasl_client_plug_init_t(const sasl_utils_t *utils, 483 const sasl_utils_t *utils; /* SASL API utility routines -- */ member in struct:sasl_server_params 624 void (*mech_dispose)(void *conn_context, const sasl_utils_t *utils); 630 void (*mech_free)(void *glob_context, const sasl_utils_t *utils); 725 * utils -- utility callback functions 739 typedef int sasl_server_plug_init_t(const sasl_utils_t *utils, [all...] |
/osnet-11/usr/src/lib/libsasl/plugin/ |
H A D | plugin_common.c | 122 int _plug_ipfromstring(const sasl_utils_t *utils, const char *addr, argument 138 if(!utils || !addr || !out) { 139 if(utils) PARAMERROR( utils ); 149 if(utils) PARAMERROR( utils ); 174 if(utils) PARAMERROR( utils ); 180 PARAMERROR( utils ); 187 if(utils) PARAMERRO 236 _plug_iovec_to_buf(const sasl_utils_t *utils, const struct iovec *vec, unsigned numiov, buffer_info_t **output) argument 283 _plug_buf_alloc(const sasl_utils_t *utils, char **rwbuf, unsigned *curlen, unsigned newlen) argument 322 _plug_strdup(const sasl_utils_t * utils, const char *in, char **out, int *outlen) argument 353 _plug_free_string(const sasl_utils_t *utils, char **str) argument 367 _plug_free_secret(const sasl_utils_t *utils, sasl_secret_t **secret) argument 402 _plug_get_simple(const sasl_utils_t *utils, unsigned int id, int required, const char **result, sasl_interact_t **prompt_need) argument 450 _plug_get_password(const sasl_utils_t *utils, sasl_secret_t **password, unsigned int *iscopy, sasl_interact_t **prompt_need) argument 509 _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 556 _plug_get_realm(const sasl_utils_t *utils, const char **availrealms, const char **realm, sasl_interact_t **prompt_need) argument 601 _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 711 _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 753 _plug_parseuser(const sasl_utils_t *utils, char **user, char **realm, const char *user_realm, const char *serverFQDN, const char *input) argument 858 convert_prompt(const sasl_utils_t *utils, void **h, const char *s) argument 934 local_to_utf(const sasl_utils_t *utils, const char *s) argument [all...] |
/osnet-11/usr/src/lib/sasl_plugins/gssapi/ |
H A D | gssapi.c | 107 get_oid(const sasl_utils_t *utils, gss_OID *oid); 137 const sasl_utils_t *utils; member in struct:context 193 sasl_gss_seterror(const sasl_utils_t *utils, OM_uint32 maj, OM_uint32 min) 203 const sasl_utils_t *utils = text->utils; local 210 if(!utils) return; 213 ret = _plug_buf_alloc(utils, &out, &curlen, 256); 230 utils->log(text->utils->conn, SASL_LOG_FAIL, 235 utils 618 gss_new_context(const sasl_utils_t *utils) argument 726 get_oid(const sasl_utils_t *utils, gss_OID *oid) argument 761 gssapi_common_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument [all...] |
/osnet-11/usr/src/lib/sasl_plugins/digestmd5/ |
H A D | digestmd5.c | 91 static int uef_init(const sasl_utils_t *utils); 234 /* copy of utils from the params structures */ 235 const sasl_utils_t *utils; member in struct:context 329 DigestCalcResponse(const sasl_utils_t * utils, argument 349 utils->MD5Init(&Md5Ctx); 352 utils->MD5Update(&Md5Ctx, pszMethod, strlen((char *) pszMethod)); 354 utils->MD5Update(&Md5Ctx, (unsigned char *) COLON, 1); 356 /* utils->MD5Update(&Md5Ctx, (unsigned char *) "AUTHENTICATE:", 13); */ 357 utils->MD5Update(&Md5Ctx, pszDigestUri, strlen((char *) pszDigestUri)); 360 utils 412 MD5_UTF8_8859_1(const sasl_utils_t * utils, MD5_CTX * ctx, bool In_ISO_8859_1, const unsigned char *base, int len) argument 442 DigestCalcSecret(const sasl_utils_t * utils, unsigned char *pszUserName, unsigned char *pszRealm, unsigned char *Password, int PasswordLen, HASH HA1) argument 481 create_nonce(const sasl_utils_t * utils) argument 533 add_to_challenge(const sasl_utils_t *utils, char **str, unsigned *buflen, unsigned *curlen, char *name, unsigned char *value, bool need_quotes) argument 1667 create_layer_keys(context_t *text, const sasl_utils_t *utils, HASH key, int keylen, char enckey[16], char deckey[16]) argument 2268 digestmd5_common_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 2301 clear_reauth_entry(reauth_entry_t *reauth, enum Context_type type, const sasl_utils_t *utils) argument 2319 digestmd5_common_mech_free(void *glob_context, const sasl_utils_t *utils) argument 2346 DigestCalcHA1FromSecret(context_t * text, const sasl_utils_t * utils, HASH HA1, unsigned char *authorization_id, unsigned char *pszNonce, unsigned char *pszCNonce, HASHHEX SessionKey) argument 2376 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 3675 digestmd5_server_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 3716 digestmd5_server_plug_init(sasl_utils_t *utils, int maxversion, int *out_version, sasl_server_plug_t **pluglist, int *plugcount) argument 3816 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 3859 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 5159 digestmd5_client_mech_dispose(void *conn_context, const sasl_utils_t *utils) argument 5205 digestmd5_client_plug_init(sasl_utils_t *utils, int maxversion, int *out_version, sasl_client_plug_t **pluglist, int *plugcount) argument 5274 getSlotID(const sasl_utils_t *utils, CK_MECHANISM_TYPE mech_type, CK_SLOT_ID *slot_id) argument 5355 uef_init(const sasl_utils_t *utils) argument [all...] |