Back to index

enigmail  1.4.3
Defines | Functions | Variables
nsEnigMimeDecrypt.cpp File Reference
#include "enigmail.h"
#include "nspr.h"
#include "nsCOMPtr.h"
#include "plstr.h"
#include "nsStringAPI.h"
#include "nsNetUtil.h"
#include "nsIPrompt.h"
#include "nsIMsgWindow.h"
#include "nsMsgBaseCID.h"
#include "nsIMsgMailSession.h"
#include "nsIMimeMiscStatus.h"
#include "nsIEnigMimeHeaderSink.h"
#include "nsIAsyncInputStream.h"
#include "nsIThread.h"
#include "nsIEventTarget.h"
#include "nsEnigMimeDecrypt.h"
#include "nsIPipeTransport.h"
#include "nsIIPCBuffer.h"
#include "nsIEnigmail.h"

Go to the source code of this file.

Defines

#define FORCE_PR_LOG   /* Allow logging even in release build */
#define ERROR_LOG(args)   PR_LOG(gEnigMimeDecryptLog,PR_LOG_ERROR,args)
#define WARNING_LOG(args)   PR_LOG(gEnigMimeDecryptLog,PR_LOG_WARNING,args)
#define DEBUG_LOG(args)   PR_LOG(gEnigMimeDecryptLog,PR_LOG_DEBUG,args)
#define MAX_BUFFER_BYTES   32768

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS2 (nsEnigMimeDecrypt, nsIEnigMimeDecrypt, nsIPipeReader) nsEnigMimeDecrypt

Variables

static const PRUint32 kCharMax = 1024

Define Documentation

#define DEBUG_LOG (   args)    PR_LOG(gEnigMimeDecryptLog,PR_LOG_DEBUG,args)

Definition at line 66 of file nsEnigMimeDecrypt.cpp.

#define ERROR_LOG (   args)    PR_LOG(gEnigMimeDecryptLog,PR_LOG_ERROR,args)

Definition at line 64 of file nsEnigMimeDecrypt.cpp.

#define FORCE_PR_LOG   /* Allow logging even in release build */

Definition at line 38 of file nsEnigMimeDecrypt.cpp.

#define MAX_BUFFER_BYTES   32768

Definition at line 68 of file nsEnigMimeDecrypt.cpp.

#define WARNING_LOG (   args)    PR_LOG(gEnigMimeDecryptLog,PR_LOG_WARNING,args)

Definition at line 65 of file nsEnigMimeDecrypt.cpp.


Function Documentation

Definition at line 74 of file nsEnigMimeDecrypt.cpp.

  : mInitialized(PR_FALSE),
    mVerifyOnly(PR_FALSE),
    mRfc2015(PR_FALSE),
    mDone(PR_FALSE),

    mInputLen(0),
    mOutputLen(0),
    mIterations(0),
    mCtFound(-1),

    mBuffer(nsnull),
    mListener(nsnull),
    mPipeTrans(nsnull),
    mSecurityInfo(nsnull),
    mUri(nsnull)
{
  nsresult rv;

  NS_INIT_ISUPPORTS();

#ifdef PR_LOGGING
  if (gEnigMimeDecryptLog == nsnull) {
    gEnigMimeDecryptLog = PR_NewLogModule("nsEnigMimeDecrypt");
  }
#endif

#ifdef FORCE_PR_LOG
  nsCOMPtr<nsIThread> myThread;
  rv = ENIG_GET_THREAD(myThread);
  DEBUG_LOG(("nsEnigMimeDecrypt:: <<<<<<<<< CTOR(%p): myThread=%p\n",
         this, myThread.get()));
#endif
}

Variable Documentation

const PRUint32 kCharMax = 1024 [static]

Definition at line 69 of file nsEnigMimeDecrypt.cpp.