/*
* CertChainContext.h
* Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL9
// 2009/03/17
#pragma once
#include <sol/Object.h>
#include <wincrypt.h>
#include <sol/Bytes.h>
namespace SOL {
class CertChainContext :public Object {
private:
PCCERT_CHAIN_CONTEXT pChainContext
public:
/**
* @param context PCCERT_CONTEXT
* option parameter.
*/
//2009/03/15 context=NULL
CertChainContext(PCCERT_CHAIN_CONTEXT context=NULL)
:pChainContext(context)
{
//Simple shallow copy for the pointer context;
}
public:
/**
* Destructor
*/
~CertChainContext() {
if (pContext) {
CertFreeCertificateChain(pChainContext);
pContext = NULL;
}
}
};
}
|