PORT_Assert( ssl_HaveSSL3HandshakeLock(ss)); PORT_Assert( ssl_HaveXmitBufLock(ss) );
PORT_Assert( ss->opt.noLocks || ssl_HaveSSL3HandshakeLock(ss)); PORT_Assert( ss->opt.noLocks || ssl_HaveXmitBufLock(ss) );
ssl3_FlushHandshake(sslSocket *ss, PRInt32 flags){    PRInt32 rv;    PORT_Assert( ssl_HaveSSL3HandshakeLock(ss));    PORT_Assert( ssl_HaveXmitBufLock(ss) );    if (!ss->sec.ci.sendBuf.buf || !ss->sec.ci.sendBuf.len)	return SECSuccess;    rv = ssl3_SendRecord(ss, content_handshake, ss->sec.ci.sendBuf.buf,			 ss->sec.ci.sendBuf.len, flags);    if (rv < 0) {	return (SECStatus)rv;	/* error code set by ssl3_SendRecord */    }    ss->sec.ci.sendBuf.len = 0;    return SECSuccess;}