Lines Matching defs:principals
68 cert->principals = NULL;
191 xfree(cert->principals[i]);
192 if (cert->principals != NULL)
193 xfree(cert->principals);
1193 to->principals = xcalloc(from->nprincipals,
1194 sizeof(*to->principals));
1196 to->principals[i] = xstrdup(from->principals[i]);
1329 u_char *principals, *critical, *exts, *sig_key, *sig;
1343 principals = exts = critical = sig_key = sig = NULL;
1347 (principals = buffer_get_string_ret(b, &plen)) == NULL ||
1378 buffer_append(&tmp, principals, plen);
1381 error("%s: Too many principals", __func__);
1385 error("%s: Principals data invalid", __func__);
1388 key->cert->principals = xrealloc(key->cert->principals,
1389 key->cert->nprincipals + 1, sizeof(*key->cert->principals));
1390 key->cert->principals[key->cert->nprincipals++] = principal;
1449 if (principals != NULL)
1450 xfree(principals);
1864 Buffer principals;
1932 buffer_init(&principals);
1934 buffer_put_cstring(&principals, k->cert->principals[i]);
1935 buffer_put_string(&k->cert->certblob, buffer_ptr(&principals),
1936 buffer_len(&principals));
1937 buffer_free(&principals);
2012 if (strcmp(name, k->cert->principals[i]) == 0) {