Lines Matching refs:cert
167 struct sshkey *public, *cert = NULL;
191 xasprintf(&certpath, "%s-cert.pub", filename);
192 if ((r = sshkey_load_public(certpath, &cert, &comment)) != 0) {
198 if (!sshkey_equal_public(cert, public))
202 if (delete_one(agent_fd, cert, comment, certpath, qflag) == 0)
206 sshkey_free(cert);
244 struct sshkey *private, *cert;
392 /* Skip trying to load the cert if requested */
397 xasprintf(&certpath, "%s-cert.pub", filename);
398 if ((r = sshkey_load_public(certpath, &cert, NULL)) != 0) {
405 if (!sshkey_equal_public(cert, private)) {
408 sshkey_free(cert);
415 sshkey_free(cert);
418 if ((r = sshkey_cert_copy(cert, private)) != 0) {
420 sshkey_free(cert);
423 sshkey_free(cert);
429 private->cert->key_id);
435 private->cert->key_id);