Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlSetSSL

Set the connection's SSL options before calling ctsqlConnect.

Declaration

CTSQLRET ctsqlDECL ctsqlSetSSL(pCTSQLCONN hConn, CTSQLCHAR* certificate)

Parameters:

  • hConn [IN] - Connection handle.
  • certificate [IN] - Certificate, possible values:

    NULL - No SSL.

    "BASIC" - SSL without certificate checking.

    "<certificate file name>" - SSL with certificate checking, certificate file as specified.

    "" - SSL with certificate checking, certificate in current working directory named ctsrvr.pem.

Description

Set the connection SSL option.

Note: This function is to be used before calling ctsqlConnect. If the connection is active, ctsqlSetSSL will fail.

Return Values

Return CTSQLRET_OK on success.

See Also

TOCIndex