PKIFCNGUtils.h File Reference


Detailed Description

Subsystem: Cryptography (PKIFCRYPTO)

Module: PKIFCNGUtils

Id
PKIFCNGUtils.h 9911 2009-05-13 17:06:23Z agalustyan

Definition in file PKIFCNGUtils.h.

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CleanupFunctor< T >
class  HeapFreeFunctor< T >
class  LocalFreeFunctor< T >
class  PKIFScopedArray< T >
class  HandleGuard< T >
class  CNGPtr< T, R, >
class  CNGFlagsPtr< T, R, F, >
class  CNGPtrCF< T >

Defines

#define __PKIFCNGUTILS_H__
#define PKIFCNGPTR_DECLARE(s, f)   typedef CNGPtr<s,LONG,f> s##_PKIF
 use this to declare a handle guard for CNG handles that don't take flags to clean up
#define PKIFCNGFLAGSPTR_DECLARE(s, f)   typedef CNGFlagsPtr<s,LONG,ULONG,f> s##_PKIF
 use this to declare a handle guard for CNG handles that take flags to clean up
#define PKIFCAPI1PTR_DECLARE(s, f)   typedef CNGPtr<s,BOOL,f> s##_PKIF
 use this to declare a handle guard for CAPI handles that don't take flags to clean up
#define PKIFCAPI1FLAGSPTR_DECLARE(s, f)   typedef CNGFlagsPtr<s,BOOL,DWORD,f> s##_PKIF
 use this to declare a handle guard for CAPI handles that take flags to clean up
#define PKIFCNGPTR_DECLARE_CF(s)   typedef CNGPtrCF<s> s##_PKIF
 use this to declare a handle guard for handles that need to be cleaned up with LocalFree()

Typedefs

typedef PKIFScopedArray< char > pkif_char_array
typedef PKIFScopedArray
< unsigned char > 
pkif_byte_array

Functions

 PKIFCNGPTR_DECLARE (NCRYPT_PROV_HANDLE, NCryptFreeObject)
 PKIFCNGPTR_DECLARE (NCRYPT_KEY_HANDLE, NCryptFreeObject)
 PKIFCNGPTR_DECLARE (BCRYPT_KEY_HANDLE, BCryptDestroyKey)
 PKIFCNGPTR_DECLARE_CF (PCERT_PUBLIC_KEY_INFO)
 PKIFCNGFLAGSPTR_DECLARE (BCRYPT_ALG_HANDLE, BCryptCloseAlgorithmProvider)
 PKIFCAPI1FLAGSPTR_DECLARE (HCRYPTPROV, CryptReleaseContext)
 PKIFCAPI1PTR_DECLARE (HCRYPTKEY, CryptDestroyKey)
 PKIFCAPI1PTR_DECLARE (PCCERT_CONTEXT, CertFreeCertificateContext)


Define Documentation

#define __PKIFCNGUTILS_H__

Definition at line 11 of file PKIFCNGUtils.h.

#define PKIFCAPI1FLAGSPTR_DECLARE ( s,
 )     typedef CNGFlagsPtr<s,BOOL,DWORD,f> s##_PKIF

use this to declare a handle guard for CAPI handles that take flags to clean up

Definition at line 463 of file PKIFCNGUtils.h.

#define PKIFCAPI1PTR_DECLARE ( s,
 )     typedef CNGPtr<s,BOOL,f> s##_PKIF

use this to declare a handle guard for CAPI handles that don't take flags to clean up

Definition at line 461 of file PKIFCNGUtils.h.

#define PKIFCNGFLAGSPTR_DECLARE ( s,
 )     typedef CNGFlagsPtr<s,LONG,ULONG,f> s##_PKIF

use this to declare a handle guard for CNG handles that take flags to clean up

Definition at line 459 of file PKIFCNGUtils.h.

#define PKIFCNGPTR_DECLARE ( s,
 )     typedef CNGPtr<s,LONG,f> s##_PKIF

use this to declare a handle guard for CNG handles that don't take flags to clean up

Definition at line 457 of file PKIFCNGUtils.h.

#define PKIFCNGPTR_DECLARE_CF (  )     typedef CNGPtrCF<s> s##_PKIF

use this to declare a handle guard for handles that need to be cleaned up with LocalFree()

Definition at line 465 of file PKIFCNGUtils.h.


Typedef Documentation

typedef PKIFScopedArray<unsigned char> pkif_byte_array

Definition at line 168 of file PKIFCNGUtils.h.

Definition at line 167 of file PKIFCNGUtils.h.


Function Documentation

PKIFCAPI1FLAGSPTR_DECLARE ( HCRYPTPROV  ,
CryptReleaseContext   
)

PKIFCAPI1PTR_DECLARE ( PCCERT_CONTEXT  ,
CertFreeCertificateContext   
)

PKIFCAPI1PTR_DECLARE ( HCRYPTKEY  ,
CryptDestroyKey   
)

PKIFCNGFLAGSPTR_DECLARE ( BCRYPT_ALG_HANDLE  ,
BCryptCloseAlgorithmProvider   
)

PKIFCNGPTR_DECLARE ( BCRYPT_KEY_HANDLE  ,
BCryptDestroyKey   
)

PKIFCNGPTR_DECLARE ( NCRYPT_KEY_HANDLE  ,
NCryptFreeObject   
)

PKIFCNGPTR_DECLARE ( NCRYPT_PROV_HANDLE  ,
NCryptFreeObject   
)

PKIFCNGPTR_DECLARE_CF ( PCERT_PUBLIC_KEY_INFO   ) 


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