Sm_PolicyApi_AddScheme()

Creates a new stmndr authentication scheme. Attributes of the scheme are contained in the pstructScheme structure.
casso127
Creates a new
CA Single Sign-On
authentication scheme. Attributes of the scheme are contained in the
pstructScheme
structure.
If the scheme exists and the
bUpdate
flag is true, the item is updated.
Type
Authentication scheme function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_AddScheme (
void*pSessionHandle,
Sm_PolicyApi_Scheme_t*pstructScheme,
const boolbUpdate
);
Parameter
I/O
Description
pSessionHandle
I
A pointer to an internal Policy Management API data structure. The structure holds information about the administrator session and the client session.
pstructScheme
I
A pointer to a completely filled-in scheme structure.
bUpdate
I
A flag to indicate that if an existing object is found, it should be updated.
Returns
  • Sm_PolicyApi_Success. The scheme was created successfully.
  • Sm_PolicyApi_Failure. The scheme was not created successfully.
  • Sm_PolicyApi_InvalidHandle. There was no valid initialization prior to this call.
  • Sm_PolicyApi_NoSession. There is no valid administrator session.
  • Sm_PolicyApi_NoPrivilege. The administrator does not have the privilege to create a scheme.
  • Sm_PolicyApi_InvalidOid. The scheme object identifier was not found during an update.