Servers use challenge/response security handshaking to provide an additional level of login security checking.
To provide the response that this handshake method requires, an application must be coded as follows:
Before calling ct_connect, the application must call ct_con_props to set one of the following properties:
CS_SEC_CHALLENGE to request Sybase-defined challenge/response security handshaking.
CS_SEC_APPDEFINED to request Open Server application-defined challenge/response security handshaking.
If either or both of these properties is CS_TRUE, ct_connect invokes the application’s negotiation callback in response to server challenges.
The application must contain a negotiation callback that is coded to return the required response.
The application calls ct_callback to install the callback either at the context level or for a specific connection.