Lines Matching refs:principals

688 		free(cert->principals[i]);  in cert_free()
689 free(cert->principals); in cert_free()
709 cert->principals = NULL; in cert_new()
1577 if ((to->principals = calloc(from->nprincipals, in sshkey_cert_copy()
1578 sizeof(*to->principals))) == NULL) { in sshkey_cert_copy()
1583 to->principals[i] = strdup(from->principals[i]); in sshkey_cert_copy()
1584 if (to->principals[i] == NULL) { in sshkey_cert_copy()
1872 struct sshbuf *principals = NULL, *crit = NULL; in cert_parse() local
1886 (ret = sshbuf_froms(b, &principals)) != 0 || in cert_parse()
1913 while (sshbuf_len(principals) > 0) { in cert_parse()
1921 if ((ret = sshbuf_get_cstring(principals, &principal, in cert_parse()
1926 oprincipals = key->cert->principals; in cert_parse()
1927 key->cert->principals = recallocarray(key->cert->principals, in cert_parse()
1929 sizeof(*key->cert->principals)); in cert_parse()
1930 if (key->cert->principals == NULL) { in cert_parse()
1932 key->cert->principals = oprincipals; in cert_parse()
1936 key->cert->principals[key->cert->nprincipals++] = principal; in cert_parse()
1990 sshbuf_free(principals); in cert_parse()
2286 struct sshbuf *principals = NULL; in sshkey_certify_custom() local
2344 if ((principals = sshbuf_new()) == NULL) { in sshkey_certify_custom()
2349 if ((ret = sshbuf_put_cstring(principals, in sshkey_certify_custom()
2350 k->cert->principals[i])) != 0) in sshkey_certify_custom()
2353 if ((ret = sshbuf_put_stringb(cert, principals)) != 0 || in sshkey_certify_custom()
2387 sshbuf_free(principals); in sshkey_certify_custom()
2452 if (match_pattern(k->cert->principals[i], in sshkey_cert_check_authority()
2457 } else if (strcmp(name, k->cert->principals[i]) == 0) { in sshkey_cert_check_authority()