#include "canetworkconfigurator.h"
#include "cainterfacecontroller.h"
#include "logger.h"
+
#if defined(__WITH_DTLS__) || defined(__WITH_TLS__)
#include "ca_adapter_net_ssl.h"
#endif // __WITH_DTLS__ or __WITH_TLS__
CAResult_t CASelectCipherSuite(const uint16_t cipher, CATransportAdapter_t adapter)
{
+ (void)(adapter); // prevent unused-parameter warning when building release variant
OIC_LOG_V(DEBUG, TAG, "IN %s", __func__);
OIC_LOG_V(DEBUG, TAG, "cipher : %d , CATransportAdapter : %d", cipher, adapter);
CAResult_t res = CA_STATUS_FAILED;
OIC_LOG_V(ERROR, TAG, "Failed to CAsetTlsCipherSuite : %d", res);
}
#else
+ (void)(cipher); // prevent unused-parameter warning
OIC_LOG(ERROR, TAG, "Method not supported");
#endif
OIC_LOG_V(DEBUG, TAG, "Out %s", __func__);
OIC_LOG_V(ERROR, TAG, "Failed to CAsetTlsCipherSuite : %d", res);
}
#else
+ (void)(enable); // prevent unused-parameter compiler warning
OIC_LOG(ERROR, TAG, "Method not supported");
#endif
OIC_LOG_V(ERROR, TAG, "Out %s", __func__);
OIC_LOG_V(ERROR, TAG, "Failed to CAGenerateOwnerPSK : %d", res);
}
#else
+ (void)(endpoint); // prevent unused-parameter compiler warnings
+ (void)(label);
+ (void)(labelLen);
+ (void)(rsrcServerDeviceID);
+ (void)(rsrcServerDeviceIDLen);
+ (void)(provServerDeviceID);
+ (void)(provServerDeviceIDLen);
+ (void)(ownerPSK);
+ (void)(ownerPskSize);
OIC_LOG(ERROR, TAG, "Method not supported");
#endif
OIC_LOG_V(DEBUG, TAG, "OUT : CAGenerateOwnerPSK");
OIC_LOG_V(ERROR, TAG, "Failed to CAinitiateSslHandshake : %d", res);
}
#else
- OIC_LOG(ERROR, TAG, "Method not supported");
+ (void)(endpoint); // prevent unused-parameter compiler warning
+ OIC_LOG(ERROR, TAG, "Method not supported");
#endif
OIC_LOG_V(DEBUG, TAG, "OUT : CAInitiateHandshake");
return res;
OIC_LOG_V(ERROR, TAG, "Failed to CAsslClose : %d", res);
}
#else
+ (void)(endpoint); // prevent unused-parameter compiler warning
OIC_LOG(ERROR, TAG, "Method not supported");
#endif
OIC_LOG_V(DEBUG, TAG, "OUT : CAcloseSslSession");