From dcd65cb98ec4a45e2b31359c006a41f9a4d5763a Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 12 Feb 2015 03:54:07 +0000 Subject: If you do not support POSIX I/O then you're not tall enough to ride... ok tedu@ --- src/lib/libcrypto/des/enc_read.c | 6 +----- src/lib/libcrypto/des/enc_writ.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'src/lib/libcrypto/des') diff --git a/src/lib/libcrypto/des/enc_read.c b/src/lib/libcrypto/des/enc_read.c index e4680af4f2..f5659150d3 100644 --- a/src/lib/libcrypto/des/enc_read.c +++ b/src/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/src/lib/libcrypto/des/enc_writ.c b/src/lib/libcrypto/des/enc_writ.c index 0130c2c6d9..59f3878de9 100644 --- a/src/lib/libcrypto/des/enc_writ.c +++ b/src/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 */ } -- cgit v1.2.3-55-g6feb