summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/crypto.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2013-07-19 09:39:29 +0000
committerEric Faurot <eric@cvs.openbsd.org>2013-07-19 09:39:29 +0000
commit6fff6905b9aa3bc12806712cb01ed4cbeb444ea7 (patch)
treeedb2723e4e4ed6e29271990bc4eed04a76e19bd5 /usr.sbin/smtpd/crypto.c
parent50173549c18a7940e641fce5e0354df5326e3676 (diff)
unused variable
Diffstat (limited to 'usr.sbin/smtpd/crypto.c')
-rw-r--r--usr.sbin/smtpd/crypto.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/crypto.c b/usr.sbin/smtpd/crypto.c
index 2a239d1d39d..ba5b1646994 100644
--- a/usr.sbin/smtpd/crypto.c
+++ b/usr.sbin/smtpd/crypto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto.c,v 1.1 2013/05/04 13:46:21 gilles Exp $ */
+/* $OpenBSD: crypto.c,v 1.2 2013/07/19 09:39:28 eric Exp $ */
/*
* Copyright (c) 2013 Gilles Chehade <gilles@openbsd.org>
@@ -71,7 +71,6 @@ crypto_encrypt_file(FILE * in, FILE * out)
uint8_t tag[GCM_TAG_SIZE];
uint8_t version = API_VERSION;
size_t r, w;
- off_t sz;
int len;
int ret = 0;
struct stat sb;
@@ -81,7 +80,6 @@ crypto_encrypt_file(FILE * in, FILE * out)
return 0;
if (sb.st_size >= 0x1000000000LL)
return 0;
- sz = sb.st_size;
/* prepend version byte*/
if ((w = fwrite(&version, 1, sizeof version, out)) != sizeof version)
@@ -373,7 +371,6 @@ main(int argc, char *argv[])
* fprintf(fpin, "borken");
* fclose(fpin);
*/
-
fpin = fopen("/tmp/passwd.enc", "r");
fpout = fopen("/tmp/passwd.dec", "w");
if (!crypto_decrypt_file(fpin, fpout))