Hello,

I agree that JSS should be able to make the error code returned by
SSLSocket.forceHandshake available to the application. I thought a good way would
be to simply return the error string you get from NSS' SECU_Strerror function
(errString = SECU_Strerror(PORT_GetError())) .

-- Patrick

"Nelson B. Bolyard" wrote:

> Jamie Nicolson wrote:
> >
> > SSL_ForceHandshake returns a PRErrorCode, which is used for all sorts of
> > IO-related errors. It is not defined which subset of error codes might be
> > returned by the function, so there's no clean way of turning the error code
> > into something useful to the application. The error code is currently thrown
> > away by SSLSocket.forceHandshake for this reason.
>
> There are over 100 different error codes that might be returned by
> SSL_ForceHandshake.  If you don't want to have a Java Exception for each
> one, then perhaps you should group them.
>
> --
> Nelson Bolyard               Sun / Netscape Alliance


Reply via email to