- OIC_LOG_V(DEBUG, TAG, "CASelectCipherSuite");
-
- return CADtlsSelectCipherSuite(cipher);
+ 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;
+#if defined (__WITH_DTLS__) || defined(__WITH_TLS__)
+ res = CAsetTlsCipherSuite(cipher);
+ if (CA_STATUS_OK != res)
+ {
+ OIC_LOG_V(ERROR, TAG, "Failed to CAsetTlsCipherSuite : %d", res);
+ }
+#else
+ OIC_LOG(ERROR, TAG, "Method not supported");
+#endif
+ OIC_LOG_V(DEBUG, TAG, "Out %s", __func__);
+ return res;