Lines Matching defs:cert
109 struct sshkey *public, *cert = NULL;
130 xasprintf(&certpath, "%s-cert.pub", filename);
131 if ((r = sshkey_load_public(certpath, &cert, &comment)) != 0) {
138 if (!sshkey_equal_public(cert, public))
142 if ((r = ssh_remove_identity(agent_fd, cert)) == 0) {
151 if (cert != NULL)
152 sshkey_free(cert);
184 struct sshkey *private, *cert;
283 /* Skip trying to load the cert if requested */
288 xasprintf(&certpath, "%s-cert.pub", filename);
289 if ((r = sshkey_load_public(certpath, &cert, NULL)) != 0) {
296 if (!sshkey_equal_public(cert, private)) {
299 sshkey_free(cert);
305 sshkey_cert_is_legacy(cert))) != 0) {
307 sshkey_free(cert);
310 if ((r = sshkey_cert_copy(cert, private)) != 0) {
312 sshkey_free(cert);
315 sshkey_free(cert);
320 private->cert->key_id, ssh_err(r));
324 private->cert->key_id);