Lines Matching refs:principals
58 struct sshbuf *ca_buf, *pk, *principals, *critopts, *exts; in build_cert() local
75 principals = sshbuf_new(); in build_cert()
76 ASSERT_PTR_NE(principals, NULL); in build_cert()
77 ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gsamsa"), 0); in build_cert()
78 ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gregor"), 0); in build_cert()
95 ASSERT_INT_EQ(sshbuf_put_stringb(b, principals), 0); /* principals */ in build_cert()
110 sshbuf_free(principals); in build_cert()
437 k1->cert->principals = calloc(4, sizeof(*k1->cert->principals)); in sshkey_tests()
438 ASSERT_PTR_NE(k1->cert->principals, NULL); in sshkey_tests()
439 k1->cert->principals[0] = strdup("estragon"); in sshkey_tests()
440 k1->cert->principals[1] = strdup("vladimir"); in sshkey_tests()
441 k1->cert->principals[2] = strdup("pozzo"); in sshkey_tests()
442 k1->cert->principals[3] = strdup("lucky"); in sshkey_tests()
443 ASSERT_PTR_NE(k1->cert->principals[0], NULL); in sshkey_tests()
444 ASSERT_PTR_NE(k1->cert->principals[1], NULL); in sshkey_tests()
445 ASSERT_PTR_NE(k1->cert->principals[2], NULL); in sshkey_tests()
446 ASSERT_PTR_NE(k1->cert->principals[3], NULL); in sshkey_tests()