diff options
author | Andy Polyakov <appro@openssl.org> | 2008-12-30 13:30:57 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-12-30 13:30:57 +0000 |
commit | f17c45611e4c96df01e5664ad7ed52ec621dda41 (patch) | |
tree | 8ca72d003b9ed8ab3fc1fd12418c943a47a55ec8 /crypto/des | |
parent | 1ff7b6492bdab064695ba76fe624001ee6e6b625 (diff) |
Backport http://cvs.openssl.org/chngview?cn=17710 from HEAD.
PR: 1230
Diffstat (limited to 'crypto/des')
-rw-r--r-- | crypto/des/enc_read.c | 4 | ||||
-rw-r--r-- | crypto/des/enc_writ.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/crypto/des/enc_read.c b/crypto/des/enc_read.c index c70fb686b8..e7da2ec66b 100644 --- a/crypto/des/enc_read.c +++ b/crypto/des/enc_read.c @@ -147,7 +147,11 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, /* first - get the length */ while (net_num < HDRSIZE) { +#ifndef _WIN32 i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); +#else + i=_read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); +#endif #ifdef EINTR if ((i == -1) && (errno == EINTR)) continue; #endif diff --git a/crypto/des/enc_writ.c b/crypto/des/enc_writ.c index af5b8c2349..c2f032c9a6 100644 --- a/crypto/des/enc_writ.c +++ b/crypto/des/enc_writ.c @@ -153,7 +153,11 @@ int DES_enc_write(int fd, const void *_buf, int len, { /* eay 26/08/92 I was not doing writing from where we * got up to. */ +#ifndef _WIN32 i=write(fd,(void *)&(outbuf[j]),outnum-j); +#else + i=_write(fd,(void *)&(outbuf[j]),outnum-j); +#endif if (i == -1) { #ifdef EINTR |