Home | History | Annotate | Download | only in openssh

Lines Matching refs:cert

111 	struct sshkey *public, *cert = NULL;
132 xasprintf(&certpath, "%s-cert.pub", filename);
133 if ((r = sshkey_load_public(certpath, &cert, &comment)) != 0) {
140 if (!sshkey_equal_public(cert, public))
144 if ((r = ssh_remove_identity(agent_fd, cert)) == 0) {
153 sshkey_free(cert);
183 struct sshkey *private, *cert;
280 /* Skip trying to load the cert if requested */
285 xasprintf(&certpath, "%s-cert.pub", filename);
286 if ((r = sshkey_load_public(certpath, &cert, NULL)) != 0) {
293 if (!sshkey_equal_public(cert, private)) {
296 sshkey_free(cert);
303 sshkey_free(cert);
306 if ((r = sshkey_cert_copy(cert, private)) != 0) {
308 sshkey_free(cert);
311 sshkey_free(cert);
316 private->cert->key_id, ssh_err(r));
320 private->cert->key_id);