Lines Matching defs:tp
152 void *tp;
167 if (!(tp = (*cp_ent)(*mpp))) {
171 *tpp++ = tp;
321 char *tp;
330 if (!(tp = strdup(cp))) {
335 *tpp = tp;
463 equal_entries(const mechanism_t *mp, const mechanism_t *tp)
465 if (mp && tp) {
466 if (mp->keylen != tp->keylen)
468 if (mp->algtype != tp->algtype)
472 if (!mp->mechname && !tp->mechname)
475 if (!mp->mechname || !tp->mechname)
477 if (strcmp(mp->mechname, tp->mechname) != 0)
480 if (!mp->alias && !tp->alias)
482 if (!mp->alias || !tp->alias)
484 if (strcmp(mp->alias, tp->alias) != 0)
494 mechanism_t *tp = calloc(1, sizeof (*mp));
496 if (!mp || !tp)
499 tp->mechname = mp->mechname ? strdup(mp->mechname) : NULL;
500 tp->alias = mp->alias ? strdup(mp->alias) : NULL;
501 tp->qop = mp->qop ? strdup(mp->qop) : NULL;
502 tp->keylen = mp->keylen;
503 tp->algtype = mp->algtype;
504 tp->secserv = mp->secserv;
506 return (tp);
957 mfent_t *tp = calloc(1, sizeof (*mp));
959 if (!mp || !tp)
962 tp->mechname = mp->mechname ? strdup(mp->mechname) : NULL;
963 tp->oid = mp->oid ? strdup(mp->oid) : NULL;
964 tp->libname = mp->libname ? strdup(mp->libname) : NULL;
966 return (tp);