summaryrefslogtreecommitdiff
path: root/lib/libcrypto/des
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-02-12 03:54:08 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-02-12 03:54:08 +0000
commit3ff372d636801373cc76788414010fd6224bb039 (patch)
tree0ca3768dc1977f39cb13df68afb102284ef6a851 /lib/libcrypto/des
parent0ae4a300ba5a7c8751de6513a2404dfe1995a555 (diff)
If you do not support POSIX I/O then you're not tall enough to ride...
ok tedu@
Diffstat (limited to 'lib/libcrypto/des')
-rw-r--r--lib/libcrypto/des/enc_read.c6
-rw-r--r--lib/libcrypto/des/enc_writ.c6
2 files changed, 2 insertions, 10 deletions
diff --git a/lib/libcrypto/des/enc_read.c b/lib/libcrypto/des/enc_read.c
index e4680af4f24..f5659150d3c 100644
--- a/lib/libcrypto/des/enc_read.c
+++ b/lib/libcrypto/des/enc_read.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: enc_read.c,v 1.14 2014/07/11 08:44:48 jsing Exp $ */
+/* $OpenBSD: enc_read.c,v 1.15 2015/02/12 03:54:07 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -88,9 +88,6 @@ int DES_rw_mode = DES_PCBC_MODE;
int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
DES_cblock *iv)
{
-#if defined(OPENSSL_NO_POSIX_IO)
- return(0);
-#else
/* data to be unencrypted */
int net_num=0;
static unsigned char *net=NULL;
@@ -228,6 +225,5 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
}
}
return num;
-#endif /* OPENSSL_NO_POSIX_IO */
}
diff --git a/lib/libcrypto/des/enc_writ.c b/lib/libcrypto/des/enc_writ.c
index 0130c2c6d91..59f3878de92 100644
--- a/lib/libcrypto/des/enc_writ.c
+++ b/lib/libcrypto/des/enc_writ.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: enc_writ.c,v 1.13 2014/10/22 13:02:04 jsing Exp $ */
+/* $OpenBSD: enc_writ.c,v 1.14 2015/02/12 03:54:07 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -82,9 +82,6 @@
int DES_enc_write(int fd, const void *_buf, int len,
DES_key_schedule *sched, DES_cblock *iv)
{
-#if defined(OPENSSL_NO_POSIX_IO)
- return (-1);
-#else
#ifdef _LIBC
extern unsigned long time();
extern int write();
@@ -173,5 +170,4 @@ int DES_enc_write(int fd, const void *_buf, int len,
}
return(len);
-#endif /* OPENSSL_NO_POSIX_IO */
}