summaryrefslogtreecommitdiff
path: root/ace/SSL
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2005-10-14 14:18:44 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2005-10-14 14:18:44 +0000
commitf3939875b61e023cc74bae0c79c8a95df735092e (patch)
treef73a7d397fc2dad601f6112dd08c0893bfba9d2b /ace/SSL
parenta6d2d1bfd92d5416f7d22df1751430fa09c107f1 (diff)
downloadATCD-f3939875b61e023cc74bae0c79c8a95df735092e.tar.gz
ChangeLogTag: Fri Oct 14 14:11:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace/SSL')
-rw-r--r--ace/SSL/SSL_Asynch_BIO.cpp6
-rw-r--r--ace/SSL/SSL_Asynch_BIO.h4
-rw-r--r--ace/SSL/SSL_Asynch_Stream.h4
3 files changed, 7 insertions, 7 deletions
diff --git a/ace/SSL/SSL_Asynch_BIO.cpp b/ace/SSL/SSL_Asynch_BIO.cpp
index 7993f7620f8..93dedffa878 100644
--- a/ace/SSL/SSL_Asynch_BIO.cpp
+++ b/ace/SSL/SSL_Asynch_BIO.cpp
@@ -75,7 +75,7 @@ ACE_Asynch_BIO_free (BIO *pBIO)
}
int
-ACE_Asynch_BIO_read (BIO * pBIO, char * buf, size_t len)
+ACE_Asynch_BIO_read (BIO * pBIO, char * buf, int len)
{
BIO_clear_retry_flags (pBIO);
@@ -110,7 +110,7 @@ ACE_Asynch_BIO_read (BIO * pBIO, char * buf, size_t len)
}
int
-ACE_Asynch_BIO_write (BIO * pBIO, const char * buf, size_t len)
+ACE_Asynch_BIO_write (BIO * pBIO, const char * buf, int len)
{
BIO_clear_retry_flags (pBIO);
@@ -123,7 +123,7 @@ ACE_Asynch_BIO_write (BIO * pBIO, const char * buf, size_t len)
if (buf == 0)
return -1;
- if (len == 0)
+ if (len <= 0)
return -1;
BIO_clear_retry_flags (pBIO);
diff --git a/ace/SSL/SSL_Asynch_BIO.h b/ace/SSL/SSL_Asynch_BIO.h
index 1483b6d3c45..d6cf4e571e4 100644
--- a/ace/SSL/SSL_Asynch_BIO.h
+++ b/ace/SSL/SSL_Asynch_BIO.h
@@ -34,8 +34,8 @@
//@{
extern "C"
{
- int ACE_Asynch_BIO_write (BIO *pBIO, const char *buf, size_t len);
- int ACE_Asynch_BIO_read (BIO *pBIO, char *buf, size_t len);
+ int ACE_Asynch_BIO_write (BIO *pBIO, const char *buf, int len);
+ int ACE_Asynch_BIO_read (BIO *pBIO, char *buf, int len);
int ACE_Asynch_BIO_puts (BIO *pBIO, const char *str);
long ACE_Asynch_BIO_ctrl (BIO *pBIO, int cmd, long arg1, void *arg2);
int ACE_Asynch_BIO_new (BIO *pBIO);
diff --git a/ace/SSL/SSL_Asynch_Stream.h b/ace/SSL/SSL_Asynch_Stream.h
index e8d2b8f8c34..d1ad0f811a8 100644
--- a/ace/SSL/SSL_Asynch_Stream.h
+++ b/ace/SSL/SSL_Asynch_Stream.h
@@ -60,8 +60,8 @@ class ACE_SSL_Export ACE_SSL_Asynch_Stream
: public ACE_Asynch_Operation,
public ACE_Service_Handler
{
- friend int ACE_Asynch_BIO_read (BIO * pBIO, char * buf, int len);
- friend int ACE_Asynch_BIO_write (BIO * pBIO, const char * buf, int len);
+ friend int ACE_Asynch_BIO_read (BIO * pBIO, char * buf, size_t len);
+ friend int ACE_Asynch_BIO_write (BIO * pBIO, const char * buf, size_t len);
public: