summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/des
diff options
context:
space:
mode:
authorjsing <>2015-02-12 03:54:07 +0000
committerjsing <>2015-02-12 03:54:07 +0000
commitdcd65cb98ec4a45e2b31359c006a41f9a4d5763a (patch)
treebd6d3898fadf04a420c9858c27346eac11278944 /src/lib/libcrypto/des
parent86af7c3070260922d654cfef98d3b100ccbd79d1 (diff)
downloadopenbsd-dcd65cb98ec4a45e2b31359c006a41f9a4d5763a.tar.gz
openbsd-dcd65cb98ec4a45e2b31359c006a41f9a4d5763a.tar.bz2
openbsd-dcd65cb98ec4a45e2b31359c006a41f9a4d5763a.zip
If you do not support POSIX I/O then you're not tall enough to ride...
ok tedu@
Diffstat (limited to 'src/lib/libcrypto/des')
-rw-r--r--src/lib/libcrypto/des/enc_read.c6
-rw-r--r--src/lib/libcrypto/des/enc_writ.c6
2 files changed, 2 insertions, 10 deletions
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 @@
1/* $OpenBSD: enc_read.c,v 1.14 2014/07/11 08:44:48 jsing Exp $ */ 1/* $OpenBSD: enc_read.c,v 1.15 2015/02/12 03:54:07 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -88,9 +88,6 @@ int DES_rw_mode = DES_PCBC_MODE;
88int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, 88int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
89 DES_cblock *iv) 89 DES_cblock *iv)
90 { 90 {
91#if defined(OPENSSL_NO_POSIX_IO)
92 return(0);
93#else
94 /* data to be unencrypted */ 91 /* data to be unencrypted */
95 int net_num=0; 92 int net_num=0;
96 static unsigned char *net=NULL; 93 static unsigned char *net=NULL;
@@ -228,6 +225,5 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
228 } 225 }
229 } 226 }
230 return num; 227 return num;
231#endif /* OPENSSL_NO_POSIX_IO */
232 } 228 }
233 229
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 @@
1/* $OpenBSD: enc_writ.c,v 1.13 2014/10/22 13:02:04 jsing Exp $ */ 1/* $OpenBSD: enc_writ.c,v 1.14 2015/02/12 03:54:07 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -82,9 +82,6 @@
82int DES_enc_write(int fd, const void *_buf, int len, 82int DES_enc_write(int fd, const void *_buf, int len,
83 DES_key_schedule *sched, DES_cblock *iv) 83 DES_key_schedule *sched, DES_cblock *iv)
84 { 84 {
85#if defined(OPENSSL_NO_POSIX_IO)
86 return (-1);
87#else
88#ifdef _LIBC 85#ifdef _LIBC
89 extern unsigned long time(); 86 extern unsigned long time();
90 extern int write(); 87 extern int write();
@@ -173,5 +170,4 @@ int DES_enc_write(int fd, const void *_buf, int len,
173 } 170 }
174 171
175 return(len); 172 return(len);
176#endif /* OPENSSL_NO_POSIX_IO */
177 } 173 }