Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » UltraLite - C and C++ Programming » API Reference » UltraLite C/C++ common API reference

 

ULEnableHttpsSynchronization function

Enables the SSL synchronization stream for HTTP.

Syntax
void ULEnableHttpsSynchronization( SQLCA * sqlca );
Parameters

sqlca   A pointer to the initialized SQLCA.

In the C++ API use the Sqlca.GetCA method.

Remarks

You can use this function in C++ API applications and embedded SQL applications. You must call this function before the Synchronize function. If you attempt to synchronize without a preceding call to enable the synchronization type, the error SQLE_METHOD_CANNOT_BE_CALLED occurs.

Example
ULEnableHttpsSynchronization( sqlca );
ULEnableRsaSyncEncryption( sqlca );
synch_info.stream = "https";
synch_info.stream_parms = "tls_type=rsa";    // rsa is default, so setting this parameter is optional
conn->Synchronize( sqlca );