CAResult_t CAInitiateHandshake(const CAEndpoint_t *endpoint)
{
    OIC_LOG_V(DEBUG, TAG, "IN : CAInitiateHandshake");
    CAResult_t res = CA_STATUS_OK;

    if (!endpoint)
    {
        return CA_STATUS_INVALID_PARAM;
    }

    res = CADtlsInitiateHandshake(endpoint);
    if (CA_STATUS_OK != res)
    {
        OIC_LOG_V(ERROR, TAG, "Failed to CADtlsInitiateHandshake : %d", res);
    }

    OIC_LOG_V(DEBUG, TAG, "OUT : CAInitiateHandshake");

    return res;
}
Exemplo n.º 2
0
CAResult_t CAInitiateHandshake(const CAAddress_t* addrInfo,
                               const CATransportType_t transportType)
{
    OIC_LOG_V(DEBUG, TAG, "IN : CAInitiateHandshake");
    CAResult_t res = CA_STATUS_OK;

    if(!addrInfo)
    {
        return CA_STATUS_INVALID_PARAM;
    }

    res = CADtlsInitiateHandshake(addrInfo, transportType);
    if(CA_STATUS_OK != res)
    {
        OIC_LOG_V(ERROR, TAG, "Failed to CADtlsInitiateHandshake : %d", res);
    }

    OIC_LOG_V(DEBUG, TAG, "OUT : CAInitiateHandshake");

    return res;
}