Lines Matching refs:blob
76 u_char *blob; member
124 if ((r = memcmp(a->blob, b->blob, MIN(a->len, b->len))) != 0) in blob_cmp()
128 return memcmp(a->blob, b->blob, a->len); in blob_cmp()
174 free(rb->blob); in ssh_krl_free()
179 free(rb->blob); in ssh_krl_free()
363 plain_key_blob(const struct sshkey *key, u_char **blob, size_t *blen) in plain_key_blob() argument
376 r = sshkey_to_blob(kcopy, blob, blen); in plain_key_blob()
383 revoke_blob(struct revoked_blob_tree *rbt, u_char *blob, size_t len) in revoke_blob() argument
389 rb->blob = blob; in revoke_blob()
393 free(rb->blob); in revoke_blob()
402 u_char *blob; in ssh_krl_revoke_key_explicit() local
407 if ((r = plain_key_blob(key, &blob, &len)) != 0) in ssh_krl_revoke_key_explicit()
409 return revoke_blob(&krl->revoked_keys, blob, len); in ssh_krl_revoke_key_explicit()
415 u_char *blob; in ssh_krl_revoke_key_sha1() local
421 &blob, &len)) != 0) in ssh_krl_revoke_key_sha1()
423 return revoke_blob(&krl->revoked_sha1s, blob, len); in ssh_krl_revoke_key_sha1()
530 u_char *blob; in put_bitmap() local
534 if ((blob = malloc(len)) == NULL) in put_bitmap()
536 if (bitmap_to_string(bitmap, blob, len) != 0) { in put_bitmap()
537 free(blob); in put_bitmap()
540 r = sshbuf_put_bignum2_bytes(buf, blob, len); in put_bitmap()
541 free(blob); in put_bitmap()
746 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
757 if ((r = sshbuf_put_string(sect, rb->blob, rb->len)) != 0) in ssh_krl_to_blob()
810 const u_char *blob; in parse_revoked_certs() local
822 if ((r = sshbuf_get_string_direct(buf, &blob, &blen)) != 0 || in parse_revoked_certs()
825 if (blen != 0 && (r = sshkey_from_blob(blob, blen, &ca_key)) != 0) in parse_revoked_certs()
864 &blob, &blen)) != 0) in parse_revoked_certs()
866 if (bitmap_from_string(bitmap, blob, blen) != 0) { in parse_revoked_certs()
932 const u_char *blob; in ssh_krl_from_blob() local
988 (r = sshbuf_get_string_direct(copy, &blob, &blen)) != 0) in ssh_krl_from_blob()
1003 if ((r = sshkey_from_blob(blob, blen, &key)) != 0) { in ssh_krl_from_blob()
1014 if ((r = sshbuf_get_string_direct(copy, &blob, &blen)) != 0) { in ssh_krl_from_blob()
1019 if ((r = sshkey_verify(key, blob, blen, in ssh_krl_from_blob()
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()