• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SSLRead fails with errSSLBadRecordMac [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: SSLRead fails with errSSLBadRecordMac
  • Next by Date: SSLHandshake takes ages with certain browsers
  • Previous by thread: Re: SSLRead fails with errSSLBadRecordMac
  • Next by thread: SSLHandshake takes ages with certain browsers
  • Index(es):
    • Date
    • Thread