Lines Matching refs:ca_key
85 struct sshkey *ca_key; member
158 sshkey_free(rc->ca_key); in revoked_certs_free()
207 revoked_certs_for_ca_key(struct ssh_krl *krl, const struct sshkey *ca_key, in revoked_certs_for_ca_key() argument
215 if ((ca_key == NULL && rc->ca_key == NULL) || in revoked_certs_for_ca_key()
216 sshkey_equal(rc->ca_key, ca_key)) { in revoked_certs_for_ca_key()
226 if (ca_key == NULL) in revoked_certs_for_ca_key()
227 rc->ca_key = NULL; in revoked_certs_for_ca_key()
228 else if ((r = sshkey_from_private(ca_key, &rc->ca_key)) != 0) { in revoked_certs_for_ca_key()
236 ca_key == NULL ? "*" : sshkey_type(ca_key))); in revoked_certs_for_ca_key()
315 ssh_krl_revoke_cert_by_serial(struct ssh_krl *krl, const struct sshkey *ca_key, in ssh_krl_revoke_cert_by_serial() argument
318 return ssh_krl_revoke_cert_by_serial_range(krl, ca_key, serial, serial); in ssh_krl_revoke_cert_by_serial()
323 const struct sshkey *ca_key, u_int64_t lo, u_int64_t hi) in ssh_krl_revoke_cert_by_serial_range() argument
330 if ((r = revoked_certs_for_ca_key(krl, ca_key, &rc, 1)) != 0) in ssh_krl_revoke_cert_by_serial_range()
336 ssh_krl_revoke_cert_by_key_id(struct ssh_krl *krl, const struct sshkey *ca_key, in ssh_krl_revoke_cert_by_key_id() argument
343 if ((r = revoked_certs_for_ca_key(krl, ca_key, &rc, 1)) != 0) in ssh_krl_revoke_cert_by_key_id()
560 if (rc->ca_key == NULL) { in revoked_certs_generate()
564 if ((r = sshkey_puts(rc->ca_key, buf)) != 0) in revoked_certs_generate()
815 struct sshkey *ca_key = NULL; in parse_revoked_certs() local
824 if (blen != 0 && (r = sshkey_from_blob(blob, blen, &ca_key)) != 0) in parse_revoked_certs()
842 ca_key, serial)) != 0) in parse_revoked_certs()
851 ca_key, serial_lo, serial_hi)) != 0) in parse_revoked_certs()
877 ca_key, serial_lo + serial)) != 0) in parse_revoked_certs()
889 ca_key, key_id)) != 0) in parse_revoked_certs()
912 sshkey_free(ca_key); in parse_revoked_certs()