diff options
author | 2020-01-25 23:02:13 +0000 | |
---|---|---|
committer | 2020-01-25 23:02:13 +0000 | |
commit | 62af228467135ddff4a44e5f7a48ca2a03bc8ba3 (patch) | |
tree | 6a573e8d853ae4e7bde4b8fbf2cf5f3203bb0a6e /usr.bin/ssh/sshbuf-misc.c | |
parent | Minor cleanup, no functional change: (diff) | |
download | wireguard-openbsd-62af228467135ddff4a44e5f7a48ca2a03bc8ba3.tar.xz wireguard-openbsd-62af228467135ddff4a44e5f7a48ca2a03bc8ba3.zip |
factor out reading/writing sshbufs to dedicated functions;
feedback and ok markus@
Diffstat (limited to 'usr.bin/ssh/sshbuf-misc.c')
-rw-r--r-- | usr.bin/ssh/sshbuf-misc.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/usr.bin/ssh/sshbuf-misc.c b/usr.bin/ssh/sshbuf-misc.c index b30eaeaabb3..20234b97321 100644 --- a/usr.bin/ssh/sshbuf-misc.c +++ b/usr.bin/ssh/sshbuf-misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshbuf-misc.c,v 1.11 2019/07/30 05:04:49 djm Exp $ */ +/* $OpenBSD: sshbuf-misc.c,v 1.12 2020/01/25 23:02:14 djm Exp $ */ /* * Copyright (c) 2011 Damien Miller * @@ -17,19 +17,24 @@ #include <sys/types.h> #include <sys/socket.h> +#include <sys/stat.h> #include <netinet/in.h> + +#include <ctype.h> #include <errno.h> -#include <stdlib.h> +#include <fcntl.h> +#include <limits.h> +#include <resolv.h> #include <stdint.h> #include <stdio.h> -#include <limits.h> +#include <stdlib.h> #include <string.h> -#include <resolv.h> -#include <ctype.h> +#include <unistd.h> #include "ssherr.h" #define SSHBUF_INTERNAL #include "sshbuf.h" +#include "atomicio.h" void sshbuf_dump_data(const void *s, size_t len, FILE *f) |