SOL9 2.0 Class: CertChainContext

 SOL9 C++ Class Library  SOL9 Samples  SOL9 Tutorial  SOL9 FAQ  SOL9 ClassTree 

Source code

/*
 * CertChainContext.h 
 * Copyright (c) 2009 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;
        }
    }

};

}

Last modified: 19 Dec 2009

Copyright (c) 2009 Antillia.com ALL RIGHTS RESERVED.