KMD_Resource
KMD_Resource
kmd
1998 12-06
CLASS
KMD_Resource - C++ base class for keymaster managed resources
SYNOPSIS
The KMD_Resource object is the root class for any object needing the services
of the keymaster. This object includes the functionality to open and manage
the connection with the keymaster. It also contains the necessary data
(the key and pid) to communicate with the keymaster.
CONSTRUCTOR
KMD_Resource()
The constructor will automatically set up communication with the
keymaster is not already done so by a previous construction.
Derived classes should construct with a KMD_Ident object as an argument
to support use of existing resources.
MEMBER FUNCTIONS
uint32 Destroy()
Destroy the resource regardless of reference count.
uint32 GetStatus()
Get the resource status. The possible values are:
| KMD_RESOURCE_VALID |
valid resource
|
| KMD_RESOURCE_FAIL |
acquisition of the resource has failed
|
| KMD_RESOURCE_NULL_STATUS |
unset status
|
| KMD_RESOURCE_MASK |
obsolete
|
void IncrPersistance()
Increment the reference count of the resource.
void DecrPersistance()
Decrement the reference count of the resource.