Lines Matching refs:sai

710 readauth(filename, safe, sai, rpool)  in readauth()  argument
713 SASL_AI_T *sai;
800 (*sai)[lc] = sm_rpool_strdup_x(rpool, buf);
801 if ((s = strchr((*sai)[lc], '\n')) != NULL)
842 getauth(mci, e, sai) in getauth() argument
845 SASL_AI_T *sai;
916 (*sai)[r] = (char *) sm_rpool_malloc(mci->mci_rpool, l + 1);
917 if ((*sai)[r] == NULL)
922 (void) sm_strlcpy((*sai)[r], pvp[i + 1] + 3, l + 1);
932 (unsigned int) l, (*sai)[r],
936 (unsigned int) l, (*sai)[r], &len);
946 sasl_info_name[r], (*sai)[r]);
959 l = strlen((*sai)[SASL_USER]) + 1;
960 (*sai)[SASL_AUTHID] = (char *) sm_rpool_malloc(mci->mci_rpool,
962 if ((*sai)[SASL_AUTHID] == NULL)
964 (void) sm_strlcpy((*sai)[SASL_AUTHID], (*sai)[SASL_USER], l);
970 l = strlen((*sai)[SASL_AUTHID]) + 1;
971 (*sai)[SASL_USER] = (char *) sm_rpool_malloc(mci->mci_rpool,
973 if ((*sai)[SASL_USER] == NULL)
975 (void) sm_strlcpy((*sai)[SASL_USER], (*sai)[SASL_AUTHID], l);
989 (*sai)[i] = NULL; /* just clear; rpool */
1014 SASL_AI_T *sai; local
1018 sai = (SASL_AI_T *) context;
1023 *result = (*sai)[SASL_USER];
1032 *result = (*sai)[SASL_AUTHID];
1122 SASL_AI_T *sai; local
1127 sai = (SASL_AI_T *) context;
1149 l = strlen((*sai)[SASL_USER]) + 1;
1158 (void) sm_strlcpy(s, (*sai)[SASL_USER], l);
1168 h = (*sai)[SASL_AUTHID];
1171 addrealm = (*sai)[SASL_MECH] != NULL &&
1172 sm_strcasecmp((*sai)[SASL_MECH], "CRAM-MD5") == 0;
1182 if ((*sai)[SASL_ID_REALM] == NULL)
1186 realm = (*sai)[SASL_DEFREALM];
1192 (*sai)[SASL_ID_REALM] = NULL;
1205 (*sai)[SASL_ID_REALM] = authid;
1210 (*sai)[SASL_ID_REALM] = NULL;
1215 authid = (*sai)[SASL_ID_REALM];
1271 SASL_AI_T *sai; local
1276 sai = (SASL_AI_T *) context;
1277 authpass = (*sai)[SASL_PASSWORD];
1396 SASL_AI_T *sai; local
1398 sai = (SASL_AI_T *) context;
1399 if (sai == NULL)
1401 r = (*sai)[SASL_DEFREALM];
1552 attemptauth(m, mci, e, sai) in attemptauth() argument
1556 SASL_AI_T *sai;
1579 (*sai)[SASL_MECH] = NULL;
1750 (*sai)[SASL_MECH] = mechusing;