*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> CSSM_SPI_ModuleAttach (3)              
Title
Content
Arch
Section
 

CSSM_SPI_ModuleAttach(3)

Contents


NAME    [Toc]    [Back]

       CSSM_SPI_ModuleAttach  -  Attach  a  service provider module(CDSA)

SYNOPSIS    [Toc]    [Back]

       # include <cdsa/cssm.h>

       CSSM_RETURN CSSMSPI CSSM_SPI_ModuleAttach (const CSSM_GUID
       *ModuleGuid, const CSSM_VERSION *Version, uint32 SubserviceID,
 CSSM_SERVICE_TYPE SubServiceType,  CSSM_ATTACH_FLAGS
       AttachFlags,        CSSM_MODULE_HANDLE       ModuleHandle,
       CSSM_KEY_HIERARCHY  KeyHierarchy,  const  CSSM_GUID  *CssmGuid,
 const CSSM_GUID *ModuleManagerGuid, const CSSM_GUID
       *CallerGuid,  const   CSSM_UPCALLS   *Upcalls,   CSSM_MODULE_FUNCS_PTR
 *FuncTbl)

LIBRARY    [Toc]    [Back]

       Common Security Services Manager library (libcssm.so)

PARAMETERS    [Toc]    [Back]

       The CSSM_GUID of the invoked service provider module.  The
       major and minor version number of the  required  level  of
       system  services  and  features.  The  service module must
       determine whether its services  are  compatible  with  the
       required  version.   The identifier for the requested subservice
 within this module.  If only one service  is  provided
  by  the  module,  then subserviceId can be zero.  A
       CSSM_SERVICE_MASK indicating the type of services provided
       by  the  service  module  and the ordering of the function
       table returned in the output parameter  FuncTbl.   A  mask
       representing  the  caller's  request  for session-specific
       services.  The CSSM_HANDLE  value  assigned  by  CSSM  and
       associated  with  the attach session being created by this
       function.  The CSSM_KEY_HIERARCHY  option  directing  CSSM
       which embedded key or keys to use when verifying integrity
       of the named modules.  The CSSM_GUID of the CSSM  invoking
       this  function.   The  CSSM_GUID  of  the module that will
       route calls to the service provider.  The CSSM_GUID of the
       caller  who invoked CSSM_ModuleAttach(), which resulted in
       CSSM invoking this function.  A set of  function  pointers
       the  service  module must use to obtain selected CSSM services
 and to manage application memory. The memory management
  functions  are provided when the application invokes
       CSSM_ModuleAttach(). CSSM forwards these function pointers
       with  CSSM  service  function  pointers  to the module.  A
       CSSM_MODULE_FUNCS table containing pointers to the service
       module  functions the caller can use. CSSM uses this table
       to proxy calls from an application caller  to  the  add-in
       service module.

DESCRIPTION    [Toc]    [Back]

       This  function is invoked by CSSM once for each invocation
       of CSSM_ModuleAttach(), specifying the  module  identified
       by  ModuleGuid.  Four  entities  are  stakeholders in this
       function and each is identified by a CSSM_GUID value:  The
       executing  service  provider  performing the CSSM_SPI_ModuleAttach()
 operation. The module is  identified  by  ModuleGuid.
   The CSSM that invoked the service module.  CSSM
       is identified by CssmGuid.  The module that will be  routing
  calls to the service provider. This value will be the
       same as CssmGuid if CSSM is managing  the  calls  to  this
       service  provider.   The  entity that invoked CSSM through
       the CSSM_ModuleAttach() function. The caller is identified
       by CallerGuid.

       The  service  provider  module should perform an integrity
       check of CSSM.  CssmGuid can  be  used  to  locate  CSSM's
       signed  manifest  credentials.   The  service provider can
       require an integrity check of the Caller.  The  CallerGuid
       parameter  can be used to locate the Caller's signed manifest
 credentials. The  KeyHierarchy  flag  identifies  the
       class  of  embedded public keys CSSM will use to check the
       integrity of the service provider. If the manifest for the
       target  module  does not encounter an embedded key for all
       the key classes in KeyHierarchy, the integrity cross-check
       fails.

       The service module must verify compatibility with the system
 version level specified by Version. If the version  is
       not compatible, then this function fails. The service module
 should perform all initializations required to support
       the  new  attached  session  and  should return a function
       table for the SPI entry points that can be invoked by CSSM
       in  response  to  API invocations by CallerGuid. CSSM uses
       this function table to dispatch requests  for  the  attach
       session  created by this function. Each attach session has
       its own function table.

RETURN VALUE    [Toc]    [Back]

       A CSSM_RETURN value indicating  success  or  specifying  a
       particular  error  condition.  The value CSSM_OK indicates
       success. All other values represent an error condition.

ERRORS    [Toc]    [Back]

       Errors are described in the CDSA technical standard.   See
       CDSA_intro(3).

SEE ALSO    [Toc]    [Back]

      
      
       Books

       Intel    CDSA    Application    Developer's   Guide   (see
       CDSA_intro(3))

       Reference Pages    [Toc]    [Back]

       Functions:     CSSM_SPI_ModuleDetach(3),     CSSM_SPI_ModuleLoad(3)



                                         CSSM_SPI_ModuleAttach(3)
[ Back ]
 Similar pages
Name OS Title
CSSM_ModuleAttach Tru64 Attach and verify a service provider module (CDSA)
CSSM_ModuleDetach Tru64 Detach application from service provider module (CDSA)
cssm_CcToHandle Tru64 Get the module attach handle (CDSA)
CSSM_ModuleLoad Tru64 Initialize the security service module (CDSA)
CSP_EventNotify Tru64 Notify service module of a context event (CDSA)
CSSM_SPI_ModuleDetach Tru64 Notify service module of a context event (CDSA)
setspinfo IRIX set service provider information
getspinfo IRIX get service provider information
pam_sm_authenticate HP-UX Service provider implementation for pam_authenticate
pam_sm_acct_mgmt HP-UX Service provider implementation for pam_acct_mgmt
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service