The Set_Conversation_Security_Type (CMSCST) call sets the value for the conversation characteristic security_type.
The call overwrites the value assigned in the Initialize_Conversation call, and must not be executed after the Allocate call.
This function is one of the advanced functions.
CMSCST (conversation_ID, security_type, return_code)
Parameters
--> conversation_ID | Identifier of the conversation. |
--> security_type | Specifies the type of access information sent when establishing the conversation with the partner application. This information is used by the partner application to check access authorization. The following values can be set for security_type: CM_SECURITY_NONE CM_SECURITY_PROGRAM
|
<-- return_code | Result of the function call. |
Result (return_code)
CM_OK
The call is OK.
CM_PROGRAM_STATE_CHECK
The conversation is not in the “Initialize” state.
CM_PROGRAM_PARAMETER_CHECK
The conversation_ID is invalid or the value in security_type is undefined.
CM_PARM_VALUE_NOT_SUPPORTED
A value not supported by CPI-C has been entered in security_type.
CM_PRODUCT_SPECIFIC_ERROR
The UPIC instance could not be found.
If the return code is not CM_OK, the security_type characteristic remains unchanged.
State change
None.
Notes
If the value CM_SECURITY_PROGRAM is entered in security_type, the user ID and possibly the password must be set using the following calls: Set_Conversation_Security_User_ID and Set_Conversation_Security_Password.
If only the user ID is required for the access check, the Set_Conversation_Security_Password call is not necessary.
Behavior in the event of errors
CM_PROGRAM_PARAMETER_CHECK
Modify program.
CM_PARM_VALUE_NOT_SUPPORTED
Modify program.
CM_PRODUCT_SPECIFIC_ERROR
The operating system cannot provide sufficient memory for the internal buffers. Check whether the memory requirements of your program are too high, and if necessary reboot your system.
CM_ENTRY Set_Conversation_Security_Type ( unsigned char CM_PTR conversation_ID, CM_CONVERSATION_SECURITY_TYPE CM_PTR conversation_security_type, CM_RETURN_CODE CM_PTR return_code )