Re: SSLRead fails with errSSLBadRecordMac [SOLVED]
Re: SSLRead fails with errSSLBadRecordMac [SOLVED]
- Subject: Re: SSLRead fails with errSSLBadRecordMac [SOLVED]
- From: Frank Illenberger <email@hidden>
- Date: Sun, 12 Mar 2006 14:44:41 +0100
I am using SecureTransport for implementing a secure network
server. Everything is working fine, except when I try to transfer
requests that are larger than 100kByte. Then after having
transfered about 100k calling SSLRead suddenly returns
errSSLBadRecordMac (-9846)? The read buffer I am using is 4096
bytes large.
Has anybody also observed this strange behavior or knows a way to
make it work?
The one time I saw this it was because my SSLRead/Write callbacks
were wrong, and weren't reporting back to the caller the correct
amount of data supplied.
Thanks for the hint. I think I found the root of the problem. I
already was reporting the correct amount of read data in my callback
but I forgot to return errSSLWouldBlock if the actually read amount
of data was smaller than requested. Now it works fine even with large
transfers.
Frank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden