Re: SSLRead returns errSSLProtocol
Re: SSLRead returns errSSLProtocol
- Subject: Re: SSLRead returns errSSLProtocol
- From: Doug Mitchell <email@hidden>
- Date: Tue, 29 Jul 2003 13:39:27 -0700
I've never seen this, so I'm not comfortable diagnosing exactly what's
going on. SecureTransport has gotten a lot of multi-thread use (e.g. in
Safari) so the library itself is pretty solidly thread-safe. Are you
sure that neither of the MPTasks is doing their respective SSLRead or
SSLWrite ops until the SSLHandshake sequence completes successfully?
SSLHandshake has to return noErr before you can do either SSLRead or
SSLWrite.
The errSSLClosedAbort is to be expected, once you get a fatal error
like errSSLProtocol. A fatal error shuts down the connection
unconditionally. Do you have a way of seeing what the peer at the other
end of the pipe is seeing?
If the errSSLProtocol is happening *after* the handshake is complete
(i.e., after SSLHandshake() returns noErr), one of the following is
occurring:
-- the peer is sending a handshake message when it should be sending
data
-- the peer sends a badly formatted alert message
-- the peer sends a badly formatted SSL record (i.e., unrecognized
message type, too large of a message, or payload size not aligned with
the symmetric cipher block size)
-- MAC verification failure
--dpm
On Tuesday, July 29, 2003, at 10:27 AM, Larry Gerndt wrote:
(I'm re-posting this because I received no response last time)
Can anyone shed any light on the result code "errSSLProtocol" which I'm
seeing returned from SSLRead? If it helps, I'm calling SSLRead
from an
MPTask, and when I set breakpoint after each read, I never get the
error.
Without the breakpoint there, I do get it, and if I call SSLRead again
after
that error occurs, it returns "errSSLClosedAbort".
There's another MPTask that does SSLWrites. I have checked to be sure
that
SSRead is never called during SSLWrite, and it appears that they are
not, so
I'm baffled about why I would get this error. Also, it seems that the
first
couple of SSLReads and SSLWrites succeed with no errors. Then the
error
happens after that.
--
Larry Gerndt
AIM Handle: SonOfTheSonOfMan
Let the truth be told though the heavens fall -- James Garrison
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.