oc_tls:Add Cloud ciphersuites to default_priority
@@ -139,7 +139,11 @@ static int *ciphers = NULL;
#ifdef OC_PKI
static int selected_mfg_cred = -1;
static int selected_id_cred = -1;
+#ifdef OC_CLOUD
+static const int default_priority[12] = {
+#else /* OC_CLOUD */
static const int default_priority[6] = {
+#endif /* !OC_CLOUD */
#else /* OC_PKI */
static const int default_priority[2] = {
#endif /* !OC_PKI */
@@ -149,6 +153,14 @@ static const int default_priority[2] = {
MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CCM,
MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8,
MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CCM,
+#ifdef OC_CLOUD
+ MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
+ MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,
+ MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
+ MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,
+ MBEDTLS_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
+ MBEDTLS_TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
+#endif /* OC_CLOUD */
#endif /* OC_PKI */
0
};
