if ( ss->handshakeAsServer ) {
if ( ss->opt.handshakeAsServer ) {
ssl_SecureConnect(sslSocket *ss, const PRNetAddr *sa){    PRFileDesc *osfd = ss->fd->lower;    int rv;    if ( ss->handshakeAsServer ) {	ss->securityHandshake = ssl2_BeginServerHandshake;	ss->handshaking = sslHandshakingAsServer;    } else {	ss->securityHandshake = ssl2_BeginClientHandshake;	ss->handshaking = sslHandshakingAsClient;    }    /* connect to server */    rv = osfd->methods->connect(osfd, sa, ss->cTimeout);    if (rv == PR_SUCCESS) {	ss->TCPconnected = 1;    } else {	int err = PR_GetError();	SSL_DBG(("%d: SSL[%d]: connect failed, errno=%d",		 SSL_GETPID(), ss->fd, err));	if (err == PR_IS_CONNECTED_ERROR) {	    ss->TCPconnected = 1;	}     }    SSL_TRC(5, ("%d: SSL[%d]: secure connect completed, rv == %d",		SSL_GETPID(), ss->fd, rv));    return rv;}