version 1.18, 2019/09/06 05:23:55 |
version 1.19, 2020/01/25 23:02:14 |
|
|
*/ |
*/ |
char *sshbuf_dup_string(struct sshbuf *buf); |
char *sshbuf_dup_string(struct sshbuf *buf); |
|
|
|
/* |
|
* Fill a buffer from a file descriptor or filename. Both allocate the |
|
* buffer for the caller. |
|
*/ |
|
int sshbuf_load_fd(int, struct sshbuf **) |
|
__attribute__((__nonnull__ (2))); |
|
int sshbuf_load_file(const char *, struct sshbuf **) |
|
__attribute__((__nonnull__ (2))); |
|
|
|
/* |
|
* Write a buffer to a path, creating/truncating as needed (mode 0644, |
|
* subject to umask). The buffer contents are not modified. |
|
*/ |
|
int sshbuf_write_file(const char *path, struct sshbuf *buf) |
|
__attribute__((__nonnull__ (2))); |
|
|
/* Macros for decoding/encoding integers */ |
/* Macros for decoding/encoding integers */ |
#define PEEK_U64(p) \ |
#define PEEK_U64(p) \ |
(((u_int64_t)(((const u_char *)(p))[0]) << 56) | \ |
(((u_int64_t)(((const u_char *)(p))[0]) << 56) | \ |