Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSLRead fails with errSSLBadRecordMac [SOLVED]




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:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >SSLRead fails with errSSLBadRecordMac (From: Frank Illenberger <email@hidden>)
 >Re: SSLRead fails with errSSLBadRecordMac (From: Frederick Cheung <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.