Use the odbcinst utility to enable SSL connections.
If you are linking directly to the Adaptive Server ODBC Driver or the Sybase iAnywhere ODBC Driver Manager, modify the odbc.ini file.
This is an example of the odbc.ini datasource template file:
[sampledsn] Description=Sybase ODBC Data Source UserID=sa Password= Driver=Adaptive Server Enterprise Server=sampleserver Port=4100 Database=pubs2 UseCursor=1 Encryption=ssl TrustedFile=<SYBASE>/config/trusted.txt