skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 1:... HP Open Source Security for OpenVMS Volume 1:...
go to beginning of reference: API FunctionsAPI Functions
go to previous page: CSSM_GetModuleGUIDFromHandleCSSM_GetModuleGUIDFromHandle
go to next page: CSSM_GetPrivilegeCSSM_GetPrivilege
end of book navigation links


cssm_GetModuleInfo
Parameters
Return Value
See Also
 Description
Errors

NAME

cssm_GetModuleInfo - Get the module handle state information

SYNOPSIS  

# include <cssm.h>

CSSM_RETURN CSSMAPI cssm_GetModuleInfo(CSSM_MODULE_HANDLE Module,CSSM_GUID_PTR Guid,CSSM_VERSION_PTR Version,uint32 *SubServiceId,CSSM_SERVICE_TYPE *SubServiceType,CSSM_ATTACH_FLAGS *AttachFlags,CSSM_KEY_HIERARCHY *KeyHierarchy,CSSM_API_MEMORY_FUNCS_PTR AttachedMemFuncs,CSSM_FUNC_NAME_ADDR_PTR FunctionTable,uint32 NumFunctionTable);


return to top PARAMETERS  

Module (input)
 The handle to a service provider module.
GUID (input) A pointer to the CSSM_GUID structure containingthe global unique identifier for this module.
Version (output)
 The version number set on ModuleAttach.
SubServiceId (output)
 The slot number of the reader to which the moduleis attached.
SubServiceType (output)
 A CSSM_SERVICE_TYPE value identifying the classof security service.
AttachFlags (output)
 This parameter provides the caller with sessionspecific information associated with the module handle.
KeyHierarchy (output)
 The key hierarchy supplied when the module was attached.
AttachedMemFuncs (output)
 The memory functions supplied when the module wasattached.
FunctionTable (input/output
optional)
 A table of function-name and API function-pointerpairs. The caller provides the name of the functions as input. Thecorresponding API function pointers are returned on output.

The function table allows dynamic linking of CDSA interfaces,including interfaces to Elective Module Managers, which are transparentlyloaded by CSSM during the CSSM_ModuleAttach() function. The caller of this function should allocatethe memory for the number of slots required.
NumFunctionTable (input)
 The number of entries in the FunctionTable parameter.If no FunctionTable is provided, this value must be zero.


return to top DESCRIPTION  

This function returns the state information associated withthe module handle. The information returned by this function isthat set by the call to the CSSM_ModuleAttach() function. The entry point to this function is providedto a service module in a table of upcall functions passed to theservice provider during module attach processing.

If the PVC checking for service providers is on, the serviceprovider has to introduce itself before calling this function.


return to top RETURN VALUE  

A CSSM_RETURN value indicating success or specifying a particularerror condition. The value CSSM_OK indicates success. All othervalues represent an error condition.


return to top ERRORS  

Errors are described in the CDSA Technical Standard.


return to top SEE ALSO  

Books

Intel CDSA Application Developer's Guide


go to previous page: CSSM_GetModuleGUIDFromHandleCSSM_GetModuleGUIDFromHandle
go to next page: CSSM_GetPrivilegeCSSM_GetPrivilege