Defining an SSL validation callback

An SSL validation callback is defined as follows:

CS_RETCODE CS_PUBLIC
validate_srvname_cb(CS_VOID *userdata, CS_SSLCERT *certptr,
            CS_INT certcount, CS_INT valid)

where: