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_GetAppMemoryFunctionscssm_GetAppMemoryFunctions
go to next page: CSSM_GetContextCSSM_GetContext
end of book navigation links


cssm_GetAttachFunctions
Library
Description
Errors
 Parameters
Return Value
See Also

NAME

cssm_GetAttachFunctions - Get SPI function table (CDSA)

SYNOPSIS  

# include <cssm.h>

CSSM_RETURN CSSMAPI cssm_GetAttachFunctions(CSSM_MODULE_HANDLE hAddIn,CSSM_SERVICE_MASK AddinType,void **SPFunctions,CSSM_GUID_PTR Guid)


return to top LIBRARY  

Common Security Services Manager library (cdsa$incssm300_shr.exe)


return to top PARAMETERS  

hAddIn (input)
 The handle identifying the attach-session whosefunction table is to be returned by this function.
AddinType (input)
 A CSSM_SERVICE_MASK value identifying the type ofservice module whose function table is to be returned by this function.
SPFunctions (output)
 A pointer to the service module function table,which CSSM acquired from the service module during module-attachprocessing. The module manager should use this table to forwardapplication invocation of the elective APIs to their correspondingSPIs. The memory pointed to by the function pointers should notbe freed by the EMM.
Guid (output)
 A CSSM_GUID value identifying the service modulewhose function table is to be returned by this function.


return to top DESCRIPTION  

This function returns an SPI function table for the servicemodule identified by the module handle. The module must be of thetype specified by the service mask. The SPFunctions parametercontains the returned function table. The elective module managermust use this function table to forward an application's call to theelective APIs to their corresponding SPIs represented in the functiontable. The returned Guid identifies the servicemodule. It can be used to locate credentials and other informationabout the service module.

This function sets a lock on the SP functions table. The CSSMservice function cssm_ReleaseAttachFunctions() must be used to release the lock.


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_GetAppMemoryFunctionscssm_GetAppMemoryFunctions
go to next page: CSSM_GetContextCSSM_GetContext