Lines Matching refs:cert
423 ASSERT_PTR_NE(k1->cert, NULL); in sshkey_tests()
424 k1->cert->type = SSH2_CERT_TYPE_USER; in sshkey_tests()
425 k1->cert->serial = 1234; in sshkey_tests()
426 k1->cert->key_id = strdup("estragon"); in sshkey_tests()
427 ASSERT_PTR_NE(k1->cert->key_id, NULL); in sshkey_tests()
428 k1->cert->principals = calloc(4, sizeof(*k1->cert->principals)); in sshkey_tests()
429 ASSERT_PTR_NE(k1->cert->principals, NULL); in sshkey_tests()
430 k1->cert->principals[0] = strdup("estragon"); in sshkey_tests()
431 k1->cert->principals[1] = strdup("vladimir"); in sshkey_tests()
432 k1->cert->principals[2] = strdup("pozzo"); in sshkey_tests()
433 k1->cert->principals[3] = strdup("lucky"); in sshkey_tests()
434 ASSERT_PTR_NE(k1->cert->principals[0], NULL); in sshkey_tests()
435 ASSERT_PTR_NE(k1->cert->principals[1], NULL); in sshkey_tests()
436 ASSERT_PTR_NE(k1->cert->principals[2], NULL); in sshkey_tests()
437 ASSERT_PTR_NE(k1->cert->principals[3], NULL); in sshkey_tests()
438 k1->cert->nprincipals = 4; in sshkey_tests()
439 k1->cert->valid_after = 0; in sshkey_tests()
440 k1->cert->valid_before = (u_int64_t)-1; in sshkey_tests()
441 sshbuf_free(k1->cert->critical); in sshkey_tests()
442 k1->cert->critical = sshbuf_new(); in sshkey_tests()
443 ASSERT_PTR_NE(k1->cert->critical, NULL); in sshkey_tests()
444 sshbuf_free(k1->cert->extensions); in sshkey_tests()
445 k1->cert->extensions = sshbuf_new(); in sshkey_tests()
446 ASSERT_PTR_NE(k1->cert->extensions, NULL); in sshkey_tests()
447 put_opt(k1->cert->critical, "force-command", "/usr/bin/true"); in sshkey_tests()
448 put_opt(k1->cert->critical, "source-address", "127.0.0.1"); in sshkey_tests()
449 put_opt(k1->cert->extensions, "permit-X11-forwarding", NULL); in sshkey_tests()
450 put_opt(k1->cert->extensions, "permit-agent-forwarding", NULL); in sshkey_tests()
451 ASSERT_INT_EQ(sshkey_from_private(k2, &k1->cert->signature_key), 0); in sshkey_tests()