Lines Matching defs:sec
252 sasl_secret_t *sec = NULL;
330 sec = sparams->utils->malloc(sizeof(sasl_secret_t) + len);
331 if (!sec) goto done;
333 sec->len = len;
335 strncpy((char *)sec->data, auxprop_values[0].values[0], len + 1);
337 strncpy(sec->data, auxprop_values[0].values[0], len + 1);
343 sec->data,
344 sec->len);
405 if (sec) _plug_free_secret(sparams->utils, &sec);
552 static char *make_hashed(sasl_secret_t *sec, char *nonce, int noncelen,
560 if (sec == NULL) return NULL;
562 if (sec->len < 64) {
563 memcpy(secret, sec->data, sec->len);
566 for (lup= sec->len; lup < 64; lup++)
570 memcpy(secret, sec->data, 64);
618 /* check if sec layer strong enough */