PORT_Assert( ssl_HaveXmitBufLock(ss)); PORT_Assert( ssl_HaveSSL3HandshakeLock(ss));
PORT_Assert( ss->opt.noLocks || ssl_HaveXmitBufLock(ss)); PORT_Assert( ss->opt.noLocks || ssl_HaveSSL3HandshakeLock(ss));
ssl3_SendServerHelloDone(sslSocket *ss){    SECStatus rv;    SSL_TRC(3, ("%d: SSL3[%d]: send server_hello_done handshake",		SSL_GETPID(), ss->fd));    PORT_Assert( ssl_HaveXmitBufLock(ss));    PORT_Assert( ssl_HaveSSL3HandshakeLock(ss));    rv = ssl3_AppendHandshakeHeader(ss, server_hello_done, 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 */    }    return SECSuccess;}