cursor = WriteSecBuf(cursor, 0, NTLM_TYPE1_HEADER_LEN);
cursor = WriteSecBuf(cursor, 0, 0);
GenerateType1Msg(void **outBuf, PRUint32 *outLen){  //  // verify that bufLen is sufficient  //  *outLen = NTLM_TYPE1_HEADER_LEN;  *outBuf = nsMemory::Alloc(*outLen);  if (!*outBuf)    return NS_ERROR_OUT_OF_MEMORY;  //  // write out type 1 msg  //  void *cursor = *outBuf;  // 0 : signature  cursor = WriteBytes(cursor, NTLM_SIGNATURE, sizeof(NTLM_SIGNATURE));  // 8 : marker  cursor = WriteBytes(cursor, NTLM_TYPE1_MARKER, sizeof(NTLM_TYPE1_MARKER));  // 12 : flags  cursor = WriteDWORD(cursor, NTLM_TYPE1_FLAGS);  //  // NOTE: it is common for the domain and workstation fields to be empty.  //       this is true of Win2k clients, and my guess is that there is  //       little utility to sending these strings before the charset has  //       been negotiated.  we follow suite -- anyways, it doesn't hurt  //       to save some bytes on the wire ;-)  //  // 16 : supplied domain security buffer (empty)  cursor = WriteSecBuf(cursor, 0, NTLM_TYPE1_HEADER_LEN);  // 24 : supplied workstation security buffer (empty)  cursor = WriteSecBuf(cursor, 0, NTLM_TYPE1_HEADER_LEN);  return NS_OK;}