Sm_PolicyApi_GetSharedSecretPolicy()

Gets the current SharedSecretPolicy.
casso127
Gets the current SharedSecretPolicy.
Returns the current shared secret policy object. There will always be exactly one such object, so it is not necessary to specify its OID.
Type
Agent configuration.
Syntax
int SM_EXTERN Sm_PolicyApi_GetSharedSecretPolicy (
void*pSessionHandle,
Sm_PolicyApi_SharedSecretPolicy_t**ppstructSecretPolicy
);
Parameter
I/O
Description
pSessionHandle
I
The current Policy API session handle.
ppstructSecret
Policy
I/O
Address of pointer to shared secret policy structure
Returns
  • Sm_PolicyApi_Success. The operation was successful.
  • Sm_PolicyApi_Failure. Generalized failure.
  • Sm_PolicyApi_InvalidHandle. The session handle was invalid.
  • Sm_PolicyApi_NoSession. The user is not logged in.
  • Sm_PolicyApi_NoPrivilege. User does not have rights to manage objects.