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_SendHelloRequest(sslSocket *ss){    SECStatus rv;    SSL_TRC(3, ("%d: SSL3[%d]: send hello_request handshake", SSL_GETPID(),		ss->fd));    PORT_Assert( ssl_HaveSSL3HandshakeLock(ss) );    PORT_Assert( ssl_HaveXmitBufLock(ss) );    rv = ssl3_AppendHandshakeHeader(ss, hello_request, 0);    if (rv != SECSuccess) {	return rv;	/* err set by AppendHandshake */    }    rv = ssl3_FlushHandshake(ss, 0);    if (rv != SECSuccess) {	return rv;	/* error code set by ssl3_FlushHandshake */    }    ss->ssl3->hs.ws = wait_client_hello;    return SECSuccess;}