Sm_PolicyApi_CreateCertMap()

Creates a certification mapping object.
sm1252sp1
Creates a certification mapping object.
Type
Certificate map function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_CreateCertMap (
void*pSessionHandle,
Sm_PolicyApi_CertMap_t*pCertMap,
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.
pCertMap
I
The address of a pointer to Sm_PolicyApi_CertMap_t, which contains information about certificate mapping.
Update
I
A flag to indicate that if an existing object is found, it should be updated.
Returns
  • Sm_PolicyApi_Success. The certificate mapping object was 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 certificate mapping object.
  • Sm_PolicyApi_InvalidOid. The user directory OID was not found or the certificate mapping object OID was not found during an update.
  • Sm_PolicyApi_Invalid. The directory type is not valid.