Lines Matching refs:blob
76 u_char *blob; member
125 if ((r = memcmp(a->blob, b->blob, MINIMUM(a->len, b->len))) != 0) in blob_cmp()
129 return memcmp(a->blob, b->blob, a->len); in blob_cmp()
176 free(rb->blob); in ssh_krl_free()
181 free(rb->blob); in ssh_krl_free()
186 free(rb->blob); in ssh_krl_free()
367 plain_key_blob(const struct sshkey *key, u_char **blob, size_t *blen) in plain_key_blob() argument
380 r = sshkey_to_blob(kcopy, blob, blen); in plain_key_blob()
387 revoke_blob(struct revoked_blob_tree *rbt, u_char *blob, size_t len) in revoke_blob() argument
393 rb->blob = blob; in revoke_blob()
397 free(rb->blob); in revoke_blob()
406 u_char *blob; in ssh_krl_revoke_key_explicit() local
411 if ((r = plain_key_blob(key, &blob, &len)) != 0) in ssh_krl_revoke_key_explicit()
413 return revoke_blob(&krl->revoked_keys, blob, len); in ssh_krl_revoke_key_explicit()
419 u_char *blob; in revoke_by_hash() local
423 if ((blob = malloc(len)) == NULL) in revoke_by_hash()
425 memcpy(blob, p, len); in revoke_by_hash()
426 if ((r = revoke_blob(target, blob, len)) != 0) { in revoke_by_hash()
427 free(blob); in revoke_by_hash()
556 u_char *blob; in put_bitmap() local
560 if ((blob = malloc(len)) == NULL) in put_bitmap()
562 if (bitmap_to_string(bitmap, blob, len) != 0) { in put_bitmap()
563 free(blob); in put_bitmap()
566 r = sshbuf_put_bignum2_bytes(buf, blob, len); in put_bitmap()
567 free(blob); in put_bitmap()
770 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
781 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
793 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
870 const u_char *blob; in parse_revoked_certs() local
882 if ((r = sshbuf_get_string_direct(buf, &blob, &blen)) != 0 || in parse_revoked_certs()
885 if (blen != 0 && (r = sshkey_from_blob(blob, blen, &ca_key)) != 0) in parse_revoked_certs()
922 &blob, &blen)) != 0) in parse_revoked_certs()
924 if (bitmap_from_string(bitmap, blob, blen) != 0) { in parse_revoked_certs()
1201 &rb.blob, &rb.len)) != 0) in is_key_revoked()
1204 free(rb.blob); in is_key_revoked()
1211 &rb.blob, &rb.len)) != 0) in is_key_revoked()
1214 free(rb.blob); in is_key_revoked()
1222 if ((r = plain_key_blob(key, &rb.blob, &rb.len)) != 0) in is_key_revoked()
1225 free(rb.blob); in is_key_revoked()
1321 if ((r = sshkey_from_blob(rb->blob, rb->len, &key)) != 0) { in krl_dump()
1337 fp = tohex(rb->blob, rb->len); in krl_dump()
1346 fp = tohex(rb->blob, rb->len); in krl_dump()