Module: PKIFCNGUtils
Definition in file PKIFCNGUtils.h.

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 __PKIFCNGUTILS_H__ |
Definition at line 11 of file PKIFCNGUtils.h.
| #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
Definition at line 463 of file PKIFCNGUtils.h.
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, | |||
| 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
Definition at line 459 of file PKIFCNGUtils.h.
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 | ( | s | ) | 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 PKIFScopedArray<unsigned char> pkif_byte_array |
Definition at line 168 of file PKIFCNGUtils.h.
| typedef PKIFScopedArray<char> pkif_char_array |
Definition at line 167 of file PKIFCNGUtils.h.
| 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 | ) |
1.5.6