summaryrefslogtreecommitdiffstats
path: root/crypto/des
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-11-03 15:50:50 +0000
committerAndy Polyakov <appro@openssl.org>2005-11-03 15:50:50 +0000
commit1715e4885aecd804f22be7ac17afbbae6c154048 (patch)
tree2e40a4198c75c23785cc8c17de7b46dd1a2c2795 /crypto/des
parenteff7cb41d1bbcef65b34d3f75307a1b4ad11c563 (diff)
Reserve for OPENSSL_NO_POSIX_IO macro which is to eliminate references
to open/read/write/close. First OPENSSL_NO_POSIX_IO target would be Windows CE.
Diffstat (limited to 'crypto/des')
-rw-r--r--crypto/des/enc_read.c4
-rw-r--r--crypto/des/enc_writ.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/crypto/des/enc_read.c b/crypto/des/enc_read.c
index c70fb686b8..ce82125b6f 100644
--- a/crypto/des/enc_read.c
+++ b/crypto/des/enc_read.c
@@ -87,6 +87,9 @@ OPENSSL_IMPLEMENT_GLOBAL(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;
@@ -224,5 +227,6 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched,
}
}
return num;
+#endif /* OPENSSL_NO_POSIX_IO */
}
diff --git a/crypto/des/enc_writ.c b/crypto/des/enc_writ.c
index af5b8c2349..6e25b6d4f0 100644
--- a/crypto/des/enc_writ.c
+++ b/crypto/des/enc_writ.c
@@ -80,6 +80,9 @@
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();
@@ -168,4 +171,5 @@ int DES_enc_write(int fd, const void *_buf, int len,
}
return(len);
+#endif /* OPENSSL_NO_POSIX_IO */
}