diff options
author | June McEnroe <june@causal.agency> | 2019-10-31 19:04:43 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-10-31 19:04:43 -0400 |
commit | c4404762701c7073e1f85d7f89834b5ddd59e749 (patch) | |
tree | bbe1d574587f2e6d5841d2c49fb7eb4018839eef /server.c | |
parent | Send clients their own QUIT on shutdown (diff) | |
download | pounce-c4404762701c7073e1f85d7f89834b5ddd59e749.tar.gz pounce-c4404762701c7073e1f85d7f89834b5ddd59e749.zip |
Use explicit_bzero to clear passwords
GNU doesn't implement memset_s, but both FreeBSD and GNU implement explicit_bzero. Darwin doesn't, so #define it in terms of memset_s.
Diffstat (limited to '')
-rw-r--r-- | server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server.c b/server.c index d0181bb..e1fc328 100644 --- a/server.c +++ b/server.c @@ -14,6 +14,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "bounce.h" + #include <assert.h> #include <err.h> #include <netdb.h> @@ -27,8 +29,6 @@ #include <tls.h> #include <unistd.h> -#include "bounce.h" - static struct tls *client; int serverConnect(bool insecure, const char *host, const char *port) { |