PORT_Assert( ssl_Have1stHandshakeLock(ss) );
PORT_Assert( ss->opt.noLocks || ssl_Have1stHandshakeLock(ss) );
ssl2_SendErrorMessage(sslSocket *ss, int error){    int rv;    PRUint8 msg[SSL_HL_ERROR_HBYTES];    PORT_Assert( ssl_Have1stHandshakeLock(ss) );    msg[0] = SSL_MT_ERROR;    msg[1] = MSB(error);    msg[2] = LSB(error);    ssl_GetXmitBufLock(ss);    /***************************************/    SSL_TRC(3, ("%d: SSL[%d]: sending error %d", SSL_GETPID(), ss->fd, error));    ss->handshakeBegun = 1;    rv = (*ss->sec.send)(ss, msg, sizeof(msg), 0);    if (rv >= 0) {	rv = SECSuccess;    }    ssl_ReleaseXmitBufLock(ss);    /***************************************/    return rv;}