From ef56d0355d0f69e4ca61f7785a1560b7ead4cc6a Mon Sep 17 00:00:00 2001 From: "ol.beketov" Date: Thu, 9 Mar 2017 14:59:31 +0200 Subject: [PATCH] SSL adapter unit tests update Unit tests for various cipher suites updated in correspondence to changes from the patch 16251 "Support for multiple ciphersuites". Change-Id: Ie65bb0df79cb9a17d88d41fde9f791c75a04db17 Signed-off-by: ol.beketov Reviewed-on: https://gerrit.iotivity.org/gerrit/17861 Tested-by: jenkins-iotivity Reviewed-by: Randeep Singh --- extlibs/mbedtls/config-iotivity.h | 2 +- resource/csdk/connectivity/test/ssladapter_test.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/extlibs/mbedtls/config-iotivity.h b/extlibs/mbedtls/config-iotivity.h index 8f2082c..5ae3a09 100644 --- a/extlibs/mbedtls/config-iotivity.h +++ b/extlibs/mbedtls/config-iotivity.h @@ -1100,7 +1100,7 @@ * * Uncomment this macro to respect client's ciphersuite order */ -//#define MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE +#define MBEDTLS_SSL_SRV_RESPECT_CLIENT_PREFERENCE /** * \def MBEDTLS_SSL_MAX_FRAGMENT_LENGTH diff --git a/resource/csdk/connectivity/test/ssladapter_test.cpp b/resource/csdk/connectivity/test/ssladapter_test.cpp index f18dfaf..54ebbdd 100644 --- a/resource/csdk/connectivity/test/ssladapter_test.cpp +++ b/resource/csdk/connectivity/test/ssladapter_test.cpp @@ -2048,9 +2048,10 @@ TEST(TLSAdapter, Test_2) * *************************/ unsigned char predictedClientHello[] = { - 0x16, 0x03, 0x03, 0x00, 0x61, 0x01, 0x00, 0x00, 0x5d, 0x03, 0x03, 0x58, 0x74, 0xba, 0x3f, 0x04, + 0x16, 0x03, 0x03, 0x00, 0x71, 0x01, 0x00, 0x00, 0x6d, 0x03, 0x03, 0x58, 0xc1, 0x40, 0x47, 0x04, 0xb1, 0x3b, 0xda, 0x55, 0xa4, 0x8e, 0xcc, 0x3f, 0xe9, 0x45, 0x5c, 0xaf, 0xcb, 0x19, 0x2e, 0x1f, - 0x4b, 0xd5, 0x84, 0x5c, 0x4b, 0xd7, 0x7d, 0x38, 0xa2, 0xfa, 0x3d, 0x00, 0x00, 0x04, 0xc0, 0xac, + 0x4b, 0xd5, 0x84, 0x5c, 0x4b, 0xd7, 0x7d, 0x38, 0xa2, 0xfa, 0x3d, 0x00, 0x00, 0x14, 0xc0, 0xac, + 0x00, 0x3d, 0x00, 0x9c, 0xc0, 0x2b, 0xc0, 0xae, 0xc0, 0x23, 0xc0, 0x24, 0xc0, 0x2c, 0xc0, 0x27, 0x00, 0xff, 0x01, 0x00, 0x00, 0x30, 0x00, 0x0d, 0x00, 0x16, 0x00, 0x14, 0x06, 0x03, 0x06, 0x01, 0x05, 0x03, 0x05, 0x01, 0x04, 0x03, 0x04, 0x01, 0x03, 0x03, 0x03, 0x01, 0x02, 0x03, 0x02, 0x01, 0x00, 0x0a, 0x00, 0x04, 0x00, 0x02, 0x00, 0x17, 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, 0x16, -- 2.7.4