Fix X.509 build issue
authorDmitriy Zhuravlev <d.zhuravlev@samsung.com>
Thu, 18 Aug 2016 10:00:09 +0000 (13:00 +0300)
committerDmitriy Zhuravlev <d.zhuravlev@samsung.com>
Thu, 18 Aug 2016 10:58:15 +0000 (10:58 +0000)
Added adapter type to CASelectCipherSuite

Change-Id: I1f140be0fdd5508ccc1ed64b8307a232798376cd
Signed-off-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10611
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Jongmin Choi <jminl.choi@samsung.com>
resource/csdk/security/provisioning/ck_manager/sample/Door_sample.cpp
resource/csdk/security/provisioning/ck_manager/sample/Light_sample.cpp

index 280726370838e20fd78c9db568e3117f61670acb..4f5db19a4cce101afead2527b919825c1a8d86db 100644 (file)
@@ -438,7 +438,7 @@ void SendGetRequest()
     OIC_LOG(INFO, TAG, "Send Get REQ to Light server");
 
     //select ciphersuite for certificates
-    CASelectCipherSuite(TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8);
+    CASelectCipherSuite(TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8, CA_ADAPTER_IP);
 
     initAddress();
 
@@ -536,7 +536,7 @@ int main()
     PrintUsage();
 
     //select ciphersuite for certificates
-    CASelectCipherSuite(TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8);
+    CASelectCipherSuite(TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8, CA_ADAPTER_IP);
 
     struct timespec timeout;
     timeout.tv_sec  = 0;
index 11c79914346901b9a6b575d7621b3937f418cd2c..2a9b1760c83e110078c92e19099f1d73e2a5765e 100755 (executable)
@@ -303,7 +303,7 @@ int main()
      */
     createLightResource(gResourceUri, &Light);
 
-    CASelectCipherSuite(TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8);
+    CASelectCipherSuite(TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8, CA_ADAPTER_IP);
 
     struct timespec timeout;
     timeout.tv_sec  = 0;