Lines Matching refs:result

154     int result=SASL_OK, tmpresult;
179 result = _sasl_getcallback(conn, SASL_CB_SERVER_USERDB_SETPASS,
181 if(result == SASL_OK && setpass_cb) {
193 result = SASL_OK;
225 result = tmpresult;
238 RETURN(conn, result);
401 int result;
418 result = LOCK_MUTEX(&server_plug_mutex);
419 if (result != SASL_OK)
420 return result;
427 result = entry_point(mechlist->utils, SASL_SERVER_PLUG_VERSION, &version,
439 if (result != SASL_OK) {
443 "server add_plugin entry_point error %z", result);
445 if ((result != SASL_OK) && (result != SASL_NOUSER)) {
447 "server add_plugin entry_point error %z\n", result);
449 return result;
526 mech->condition = result; /* SASL_OK or SASL_NOUSER */
670 int result;
686 result = ((sasl_getpath_t *)(getconf_cb->proc))(getconf_cb->context,
688 if (result!=SASL_OK) goto done;
701 result = SASL_FAIL;
708 result = SASL_NOMEM;
742 result = ((sasl_verifyfile_t *)(verifyfile_cb->proc))(verifyfile_cb->context,
750 if (result==SASL_OK)
751 result=sasl_config_init(gctx, conf_file);
756 return result;
761 int result;
776 result = ((sasl_getpath_t *)(getpath_cb->proc))(getpath_cb->context,
778 if (result!=SASL_OK) goto done;
794 result = SASL_FAIL;
801 result = SASL_NOMEM;
809 result = ((sasl_verifyfile_t *)(verifyfile_cb->proc))(verifyfile_cb->context,
817 if (result==SASL_OK)
818 result=sasl_config_init(config_filename);
823 return result;
1213 int result = SASL_OK;
1232 result = sasl_setpass(conn,
1239 RETURN(conn,result);
1288 int result;
1324 result = _sasl_conn_init(*pconn, service, flags, SASL_CONN_SERVER,
1332 if (result != SASL_OK)
1343 result = SASL_NOMEM;
1356 result = SASL_NOMEM;
1375 result = _sasl_strdup(user_realm, &serverconn->user_realm, NULL);
1404 if(result == SASL_OK) return SASL_OK;
1410 return result;
1711 int result;
1727 result = load_config(gctx, _sasl_find_verifyfile_callback(
1729 if (result != SASL_OK)
1730 return (result);
1763 result = SASL_NOMECH;
1773 result = SASL_NOMECH;
1792 result = _sasl_get_plugin(m->f,
1796 if (result == SASL_OK) {
1797 result = _sasl_locate_entry(library, "sasl_server_plug_init",
1801 if (result == SASL_OK) {
1802 result = entry_point(mechlist->utils, SASL_SERVER_PLUG_VERSION,
1806 if (result == SASL_OK) {
1813 result = SASL_NOMECH;
1816 if (result == SASL_OK) {
1823 result = SASL_NOMECH;
1826 if (result == SASL_OK) {
1833 if (result != SASL_OK) {
1835 RETURN(conn, result);
1868 result = s_conn->mech->plug->mech_new(s_conn->mech->glob_context,
1870 result = s_conn->mech->plug->mech_new(s_conn->mech->plug->glob_context,
1878 result = SASL_OK;
1881 if (result == SASL_OK) {
1893 result = SASL_BADPROT;
1896 result = sasl_server_step(conn,
1905 result = SASL_CONTINUE;
1908 result = sasl_server_step(conn,
1916 if( result != SASL_OK
1917 && result != SASL_CONTINUE
1918 && result != SASL_INTERACT) {
1926 RETURN(conn,result);
2051 unsigned result = 0;
2056 result += strlen(listptr->plug->mech_name);
2058 return result;
2070 const char **result,
2099 if (! result)
2164 *result = conn->mechlist_buf;
2229 int result;
2238 result = _sasl_getcallback(conn, SASL_CB_SERVER_USERDB_CHECKPASS,
2240 if(result == SASL_OK && checkpass_cb) {
2241 result = checkpass_cb(conn, context, user, pass, strlen(pass),
2243 if(result == SASL_OK)
2255 result = SASL_NOMECH;
2258 while (*mech && result != SASL_OK) {
2261 result = v->verify(conn, user, pass, service,
2266 if (result != SASL_OK) {
2273 if (result == SASL_NOMECH) {
2278 if (result != SASL_OK)
2285 RETURN(conn, result);
2311 int result;
2362 result = _sasl_canon_user(conn, user, 0,
2365 if(result != SASL_OK) RETURN(conn, result);
2369 result = _sasl_checkpass(conn, user, strlen(user), pass, strlen(pass));
2372 if (result == SASL_OK) {
2373 result = do_authorization((sasl_server_conn_t *) conn);
2377 if (result == SASL_OK)
2378 result = _sasl_transition(conn, pass, passlen);
2380 RETURN(conn,result);
2401 int result=SASL_NOMECH;
2431 result = SASL_NOMECH;
2434 while (*mech && result != SASL_OK) {
2437 result = v->verify(conn, user, NULL, service, user_realm);
2441 if (result != SASL_OK) {
2450 if(result == SASL_BADPARAM) {
2451 result = SASL_OK;
2454 if (result == SASL_NOMECH) {
2462 RETURN(conn, result);
2500 int result;
2543 result = prop_request(s_conn->sparams->propctx, password_request);
2544 if(result != SASL_OK)
2547 RETURN(conn, result);
2551 result = _sasl_canon_user(conn, user, user_len,
2556 if(result != SASL_OK) RETURN(conn, result);
2559 result = _sasl_auxprop_verify_apop(conn, conn->oparams.authid,
2563 if(result != SASL_OK) {
2568 RETURN(conn, result);