#include <CryptObjects.h>
Public Member Functions | |
CCertContext () | |
Construct an empty certificate context wrapper. | |
CCertContext (PCCERT_CONTEXT pCertContext) | |
Construct a wrapper around an existing certificate context. | |
void | Free () |
Free any encapsulated certificate context. | |
void | Attach (PCCERT_CONTEXT pCertContext) |
Attach the given certificate context. | |
PCCERT_CONTEXT | Detach () |
Detach the encapsulated certificate context. | |
PCCERT_CONTEXT * | operator & () |
Extract for the address of the encapsulated context. | |
operator PCCERT_CONTEXT () const | |
Extractor for the certificate context. | |
PCCERT_CONTEXT | operator-> () |
Pointer to structure member operator. | |
CCertContext | Duplicate () |
Return a duplicate of the encapsulated certificate context. | |
BOOL | AcquirePrivateKey (DWORD dwFlags, HCRYPTPROV *phCryptProv, DWORD *pdwKeySpec, BOOL *pfCallerFreeProv) |
Acquire the certificates private key. | |
BOOL | GetContextProperty (DWORD dwPropId, PVOID *pvData, DWORD *pcbData=NULL) |
Return a property of the certificate into memory allocated by LocalAlloc. | |
BOOL | GetContextProperty (DWORD dwPropId, PVOID pvData, DWORD *pcbData) |
Return a property of the certificate context into a pre-allocate buffer. | |
BOOL | SetContextProperty (DWORD dwPropId, PVOID pvData, DWORD dwFlags=0) |
Set a property of the certificate context. | |
BOOL | CreateContext (const BYTE *pbCertEncoded, DWORD cbCertEncoded, DWORD dwCertEncodingType=MY_ENCODING_TYPE) |
Create a certificate context from an encoded object. | |
~CCertContext () | |
Tidy up the encapsulated context. | |
Protected Member Functions | |
CCertContext (const CCertContext &) | |
const CCertContext & | operator= (const CCertContext &) |
Protected Attributes | |
PCCERT_CONTEXT | m_pCertContext |
|
Construct a wrapper around an existing certificate context.
|