sshbuf_write_file
r = sshbuf_write_file(filename, keybuf);
if ((r = sshbuf_write_file(identity_file, kbuf)) != 0)
r = sshbuf_write_file(path, attest);
int sshbuf_write_file(const char *path, struct sshbuf *buf)