Lines Matching refs:result

155     int result=SASL_OK, tmpresult;
180 result = _sasl_getcallback(conn, SASL_CB_SERVER_USERDB_SETPASS,
182 if(result == SASL_OK && setpass_cb) {
194 result = SASL_OK;
226 result = tmpresult;
239 RETURN(conn, result);
398 int result;
415 result = LOCK_MUTEX(&server_plug_mutex);
416 if (result != SASL_OK)
417 return result;
424 result = entry_point(mechlist->utils, SASL_SERVER_PLUG_VERSION, &version,
432 if (result != SASL_OK) {
436 "server add_plugin entry_point error %z", result);
438 if ((result != SASL_OK) && (result != SASL_NOUSER)) {
440 "server add_plugin entry_point error %z\n", result);
442 return result;
515 mech->condition = result; /* SASL_OK or SASL_NOUSER */
659 int result;
675 result = ((sasl_getpath_t *)(getconf_cb->proc))(getconf_cb->context,
677 if (result!=SASL_OK) goto done;
690 result = SASL_FAIL;
697 result = SASL_NOMEM;
731 result = ((sasl_verifyfile_t *)(verifyfile_cb->proc))(verifyfile_cb->context,
739 if (result==SASL_OK)
740 result=sasl_config_init(gctx, conf_file);
745 return result;
750 int result;
765 result = ((sasl_getpath_t *)(getpath_cb->proc))(getpath_cb->context,
767 if (result!=SASL_OK) goto done;
783 result = SASL_FAIL;
790 result = SASL_NOMEM;
798 result = ((sasl_verifyfile_t *)(verifyfile_cb->proc))(verifyfile_cb->context,
806 if (result==SASL_OK)
807 result=sasl_config_init(config_filename);
812 return result;
1202 int result = SASL_OK;
1221 result = sasl_setpass(conn,
1228 RETURN(conn,result);
1277 int result;
1313 result = _sasl_conn_init(*pconn, service, flags, SASL_CONN_SERVER,
1321 if (result != SASL_OK)
1332 result = SASL_NOMEM;
1345 result = SASL_NOMEM;
1364 result = _sasl_strdup(user_realm, &serverconn->user_realm, NULL);
1393 if(result == SASL_OK) return SASL_OK;
1399 return result;
1680 int result;
1696 result = load_config(gctx, _sasl_find_verifyfile_callback(
1698 if (result != SASL_OK)
1699 return (result);
1732 result = SASL_NOMECH;
1742 result = SASL_NOMECH;
1761 result = _sasl_get_plugin(m->f,
1765 if (result == SASL_OK) {
1766 result = _sasl_locate_entry(library, "sasl_server_plug_init",
1770 if (result == SASL_OK) {
1771 result = entry_point(mechlist->utils, SASL_SERVER_PLUG_VERSION,
1775 if (result == SASL_OK) {
1782 result = SASL_NOMECH;
1785 if (result == SASL_OK) {
1792 result = SASL_NOMECH;
1795 if (result == SASL_OK) {
1802 if (result != SASL_OK) {
1804 RETURN(conn, result);
1837 result = s_conn->mech->plug->mech_new(s_conn->mech->glob_context,
1839 result = s_conn->mech->plug->mech_new(s_conn->mech->plug->glob_context,
1847 result = SASL_OK;
1850 if (result == SASL_OK) {
1862 result = SASL_BADPROT;
1865 result = sasl_server_step(conn,
1874 result = SASL_CONTINUE;
1877 result = sasl_server_step(conn,
1885 if( result != SASL_OK
1886 && result != SASL_CONTINUE
1887 && result != SASL_INTERACT) {
1895 RETURN(conn,result);
2020 unsigned result = 0;
2025 result += strlen(listptr->plug->mech_name);
2027 return result;
2039 const char **result,
2068 if (! result)
2133 *result = conn->mechlist_buf;
2198 int result;
2207 result = _sasl_getcallback(conn, SASL_CB_SERVER_USERDB_CHECKPASS,
2209 if(result == SASL_OK && checkpass_cb) {
2210 result = checkpass_cb(conn, context, user, pass, strlen(pass),
2212 if(result == SASL_OK)
2224 result = SASL_NOMECH;
2227 while (*mech && result != SASL_OK) {
2230 result = v->verify(conn, user, pass, service,
2235 if (result != SASL_OK) {
2242 if (result == SASL_NOMECH) {
2247 if (result != SASL_OK)
2254 RETURN(conn, result);
2280 int result;
2331 result = _sasl_canon_user(conn, user, 0,
2334 if(result != SASL_OK) RETURN(conn, result);
2338 result = _sasl_checkpass(conn, user, strlen(user), pass, strlen(pass));
2341 if (result == SASL_OK) {
2342 result = do_authorization((sasl_server_conn_t *) conn);
2346 if (result == SASL_OK)
2347 result = _sasl_transition(conn, pass, passlen);
2349 RETURN(conn,result);
2370 int result=SASL_NOMECH;
2400 result = SASL_NOMECH;
2403 while (*mech && result != SASL_OK) {
2406 result = v->verify(conn, user, NULL, service, user_realm);
2410 if (result != SASL_OK) {
2419 if(result == SASL_BADPARAM) {
2420 result = SASL_OK;
2423 if (result == SASL_NOMECH) {
2431 RETURN(conn, result);
2469 int result;
2512 result = prop_request(s_conn->sparams->propctx, password_request);
2513 if(result != SASL_OK)
2516 RETURN(conn, result);
2520 result = _sasl_canon_user(conn, user, user_len,
2525 if(result != SASL_OK) RETURN(conn, result);
2528 result = _sasl_auxprop_verify_apop(conn, conn->oparams.authid,
2532 if(result != SASL_OK) {
2537 RETURN(conn, result);