mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.2 KiB
59 lines
2.2 KiB
// AuxContext.h -- Auxiliary Provider Context wrapper functor header to
|
|
// manage allocation of a context to one of the Microsoft CSPs (for
|
|
// use as a supplemental CSP).
|
|
|
|
// (c) Copyright Schlumberger Technology Corp., unpublished work, created
|
|
// 1999. This computer program includes Confidential, Proprietary
|
|
// Information and is a Trade Secret of Schlumberger Technology Corp. All
|
|
// use, disclosure, and/or reproduction is prohibited unless authorized
|
|
// in writing. All Rights Reserved.
|
|
|
|
#if !defined(SLBCSP_AUXCONTEXT_H)
|
|
#define SLBCSP_AUXCONTEXT_H
|
|
|
|
#include <windows.h>
|
|
#include <wincrypt.h>
|
|
|
|
class AuxContext
|
|
{
|
|
public:
|
|
// Types
|
|
// C'tors/D'tors
|
|
explicit
|
|
AuxContext();
|
|
|
|
AuxContext(HCRYPTPROV hcryptprov,
|
|
bool fTransferOwnership = false);
|
|
|
|
~AuxContext();
|
|
// Operators
|
|
HCRYPTPROV
|
|
operator()() const;
|
|
// Operations
|
|
// Access
|
|
// Predicates
|
|
|
|
protected:
|
|
// Types
|
|
// C'tors/D'tors
|
|
// Operators
|
|
// Operations
|
|
// Access
|
|
// Predicates
|
|
// Variables
|
|
|
|
private:
|
|
// Types
|
|
// C'tors/D'tors
|
|
// Operators
|
|
// Operations
|
|
// Access
|
|
// Predicates
|
|
// Variables
|
|
HCRYPTPROV m_hcryptprov;
|
|
bool m_fDeleteOnDestruct;
|
|
LPCTSTR m_szProvider;
|
|
};
|
|
|
|
|
|
#endif // SLBCSP_AUXCONTEXT_H
|