summaryrefslogtreecommitdiffstats
path: root/bin/ed
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>2003-06-03 17:03:48 +0000
committerjhay <jhay@FreeBSD.org>2003-06-03 17:03:48 +0000
commite370b832b40aa7ac72bf013694d73c461d11fbcf (patch)
tree83f7d540ce2ef2869bc723f357098d8b651c93c8 /bin/ed
parent5b07ec4fbc5bf8fd8f51827d19dde773903589f0 (diff)
downloadFreeBSD-src-e370b832b40aa7ac72bf013694d73c461d11fbcf.zip
FreeBSD-src-e370b832b40aa7ac72bf013694d73c461d11fbcf.tar.gz
Make ed compile in the NOCRYPT case.
Reviewed by: markm
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/cbc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ed/cbc.c b/bin/ed/cbc.c
index 24307c9..119403f 100644
--- a/bin/ed/cbc.c
+++ b/bin/ed/cbc.c
@@ -76,8 +76,10 @@ enum { /* encrypt, decrypt, authenticate */
MODE_ENCRYPT, MODE_DECRYPT, MODE_AUTHENTICATE
} mode = MODE_ENCRYPT;
+#ifdef DES
DES_cblock ivec; /* initialization vector */
DES_cblock pvec; /* padding vector */
+#endif
char bits[] = { /* used to extract bits from a char */
'\200', '\100', '\040', '\020', '\010', '\004', '\002', '\001'
@@ -85,7 +87,9 @@ char bits[] = { /* used to extract bits from a char */
int pflag; /* 1 to preserve parity bits */
+#ifdef DES
DES_key_schedule schedule; /* expanded DES key */
+#endif
unsigned char des_buf[8]; /* shared buffer for get_des_char/put_des_char */
int des_ct = 0; /* count for get_des_char/put_des_char */
OpenPOWER on IntegriCloud