Lines Matching full:sai
749 ** sai -- where to store auth_info.
750 ** rpool -- resource pool for sai.
767 readauth(filename, safe, sai, rpool) in readauth() argument
770 SASL_AI_T *sai;
856 (*sai)[lc] = sm_rpool_strdup_x(rpool, buf);
857 if ((s = strchr((*sai)[lc], '\n')) != NULL)
885 ** sai -- pointer to authinfo (result).
889 ** be available, sai must be checked.
894 ** Fills in sai if successful.
898 getauth(mci, e, sai) in getauth() argument
901 SASL_AI_T *sai;
921 ** parse the data, put it into sai
972 (*sai)[r] = (char *) sm_rpool_malloc(mci->mci_rpool, l + 1);
973 if ((*sai)[r] == NULL)
978 (void) sm_strlcpy((*sai)[r], pvp[i + 1] + 3, l + 1);
988 (unsigned int) l, (*sai)[r],
992 (unsigned int) l, (*sai)[r], &len);
1002 sasl_info_name[r], (*sai)[r]);
1015 l = strlen((*sai)[SASL_USER]) + 1;
1016 (*sai)[SASL_AUTHID] = (char *) sm_rpool_malloc(mci->mci_rpool,
1018 if ((*sai)[SASL_AUTHID] == NULL)
1020 (void) sm_strlcpy((*sai)[SASL_AUTHID], (*sai)[SASL_USER], l);
1026 l = strlen((*sai)[SASL_AUTHID]) + 1;
1027 (*sai)[SASL_USER] = (char *) sm_rpool_malloc(mci->mci_rpool,
1029 if ((*sai)[SASL_USER] == NULL)
1031 (void) sm_strlcpy((*sai)[SASL_USER], (*sai)[SASL_AUTHID], l);
1045 (*sai)[i] = NULL; /* just clear; rpool */
1054 ** context -- sai
1070 SASL_AI_T *sai; local
1074 sai = (SASL_AI_T *) context;
1079 *result = (*sai)[SASL_USER];
1088 *result = (*sai)[SASL_AUTHID];
1112 ** context -- sai
1157 ** context -- sai
1178 SASL_AI_T *sai; local
1183 sai = (SASL_AI_T *) context;
1205 l = strlen((*sai)[SASL_USER]) + 1;
1214 (void) sm_strlcpy(s, (*sai)[SASL_USER], l);
1224 h = (*sai)[SASL_AUTHID];
1227 addrealm = (*sai)[SASL_MECH] != NULL &&
1228 SM_STRCASEEQ((*sai)[SASL_MECH], "cram-md5");
1238 if ((*sai)[SASL_ID_REALM] == NULL)
1242 realm = (*sai)[SASL_DEFREALM];
1248 (*sai)[SASL_ID_REALM] = NULL;
1261 (*sai)[SASL_ID_REALM] = authid;
1266 (*sai)[SASL_ID_REALM] = NULL;
1271 authid = (*sai)[SASL_ID_REALM];
1310 ** context -- sai
1327 SASL_AI_T *sai; local
1332 sai = (SASL_AI_T *) context;
1333 authpass = (*sai)[SASL_PASSWORD];
1454 SASL_AI_T *sai; local
1456 sai = (SASL_AI_T *) context;
1457 if (sai == NULL)
1459 r = (*sai)[SASL_DEFREALM];
1599 ** sai - sasl authinfo
1610 attemptauth(m, mci, e, sai) in attemptauth() argument
1614 SASL_AI_T *sai;
1637 (*sai)[SASL_MECH] = NULL;
1806 (*sai)[SASL_MECH] = mechusing;
1989 /* set the context for the callback function to sai */