summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2012-08-30 22:38:22 +0000
committerchl <chl@openbsd.org>2012-08-30 22:38:22 +0000
commit7f7d665c99f4aec9dff495d29fd2e01d5892611b (patch)
tree16ba987846894533976be6202da803de675631f4
parentfix typo in last commit (diff)
downloadwireguard-openbsd-7f7d665c99f4aec9dff495d29fd2e01d5892611b.tar.xz
wireguard-openbsd-7f7d665c99f4aec9dff495d29fd2e01d5892611b.zip
increase fread()/fwrite() buffer from 8k to 16k
ok gilles@
-rw-r--r--usr.sbin/smtpd/compress_gzip.c4
-rw-r--r--usr.sbin/smtpd/crypto_backend.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/compress_gzip.c b/usr.sbin/smtpd/compress_gzip.c
index 28578548e79..411d39594d2 100644
--- a/usr.sbin/smtpd/compress_gzip.c
+++ b/usr.sbin/smtpd/compress_gzip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compress_gzip.c,v 1.2 2012/08/30 19:33:25 chl Exp $ */
+/* $OpenBSD: compress_gzip.c,v 1.3 2012/08/30 22:38:22 chl Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@openbsd.org>
@@ -39,7 +39,7 @@
#include "smtpd.h"
#include "log.h"
-#define GZIP_BUFFER_SIZE 8192
+#define GZIP_BUFFER_SIZE 16384
static int compress_file_gzip(FILE *, FILE *);
static int uncompress_file_gzip(FILE *, FILE *);
diff --git a/usr.sbin/smtpd/crypto_backend.c b/usr.sbin/smtpd/crypto_backend.c
index c8cddf94b33..21ae943a3fd 100644
--- a/usr.sbin/smtpd/crypto_backend.c
+++ b/usr.sbin/smtpd/crypto_backend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto_backend.c,v 1.2 2012/08/30 21:59:46 chl Exp $ */
+/* $OpenBSD: crypto_backend.c,v 1.3 2012/08/30 22:38:22 chl Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@openbsd.org>
@@ -35,7 +35,7 @@
#include "log.h"
-#define CRYPTO_BUFFER_SIZE 8192
+#define CRYPTO_BUFFER_SIZE 16384
static struct crypto_params {