Fix for bug 33430

git-svn-id: svn://10.0.0.236/branches/SECURITY_CLIENT_BRANCH@77653 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ddrinan%netscape.com
2000-08-30 21:53:10 +00:00
parent eb39e6c5ec
commit 6b83e59fa0
2 changed files with 3 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ typedef CMTStatus (*CMT_VERIFY_UNIX)(CMTSocket sock);
/*
* Use this function to send data across the socket
*/
typedef size_t (*CMT_SEND)(CMTSocket sock, void* buffer, size_t length);
typedef CMInt32 (*CMT_SEND)(CMTSocket sock, void* buffer, size_t length);
/*
* Use this function to select a socket. If poll is non-zero, then
@@ -134,7 +134,7 @@ typedef CMTSocket (*CMT_SELECT)(CMTSocket *sock, int numSocks, int poll);
* Use this function to receive data from a socket. Function should
* return number of bytes actually read. Return -1 in case of error.
*/
typedef size_t (*CMT_RECEIVE)(CMTSocket sock, void *buffer, size_t bufSize);
typedef CMInt32 (*CMT_RECEIVE)(CMTSocket sock, void *buffer, size_t bufSize);
/*
* Use this function to shutdown writing to the socket.

View File

@@ -585,7 +585,7 @@ loser:
CMTStatus CMT_PKCS7EncoderFinish(PCMT_CONTROL control, CMUint32 connectionID)
{
CMTP7Private *priv;
unsigned long nbytes;
CMInt32 nbytes;
char buf[128];
CMTSocket sock, ctrlsock, sockArr[2], selSock;