PKIFCAPI2.cpp File Reference


Detailed Description

Subsystem: Cryptography (PKIFCRYPTO)

Module: CPKIFCAPI2

Id
PKIFCAPI2.cpp 11149 2010-01-21 16:40:51Z agalustyan

Definition in file PKIFCAPI2.cpp.

#include "PKIFCAPI2.h"
#include "ToolkitUtils.h"
#include "CAPIUtils.h"
#include "PKIFCAPICredential2.h"
#include "PKIFCAPICryptContext2.h"
#include "PKIFCryptoErrors.h"
#include "PKIFCAPIErrors.h"
#include "PKIFCryptoException.h"
#include "SubjectPublicKeyInfo.h"
#include "Certificate.h"
#include "KeyUsage.h"
#include "boost/numeric/conversion/cast.hpp"
#include <atlbase.h>
#include <sstream>

Include dependency graph for PKIFCAPI2.cpp:

Go to the source code of this file.

Defines

#define CLEANUP
#define CLEANUP
#define CLEANUP

Variables

BYTESREVERSED g_bytesReversed = UNSET


Define Documentation

#define CLEANUP

Value:

{ \
    if (NULL != userKey)  \
    {   CryptDestroyKey(userKey); userKey = NULL; }  \
    if (NULL != tmpCtx && TRUE == freeContext)  \
    {   CryptReleaseContext(tmpCtx, 0); tmpCtx = NULL; }  \
}

#define CLEANUP

Value:

{ \
    if (NULL != hHash)  \
    {   CryptDestroyHash(hHash); hHash = NULL; }  \
    if (NULL != tmpHashCtx && true == freeContext)  \
    {   CryptReleaseContext(tmpHashCtx, 0); tmpHashCtx = NULL; }  \
}

#define CLEANUP

Value:

{ \
    if (NULL != bin)  \
    {   delete[] bin; bin = NULL; }  \
    if (NULL != cert)  \
    {   CertFreeCertificateContext(cert); cert = NULL; }  \
}


Variable Documentation

Definition at line 32 of file PKIFCAPI2.cpp.

Referenced by CPKIFCAPI2::Decrypt().


Generated on Mon Nov 15 11:18:03 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6