[IOT-2265] [IOT-2142] [IOT-2164] Resolved Unowned device discovery in Android 19/20019/6
authorsaurabh.s9 <saurabh.s9@samsung.com>
Thu, 18 May 2017 07:22:19 +0000 (12:52 +0530)
committerRandeep Singh <randeep.s@samsung.com>
Sat, 20 May 2017 03:08:34 +0000 (03:08 +0000)
Change-Id: Ic4327443832798ed3ce093566f1994216b84dad4
Signed-off-by: saurabh.s9 <saurabh.s9@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20019
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
java/jni/JniOcProvisioning.cpp
resource/csdk/security/provisioning/src/SConscript
resource/csdk/security/provisioning/src/pmutility.c
resource/src/SConscript

index abd358e..abe51b8 100644 (file)
@@ -110,7 +110,7 @@ JNIEXPORT void JNICALL Java_org_iotivity_base_OcProvisioning_ownershipTransferCB
         if (OIC_JUST_WORKS == (OicSecOxm_t)OxmType)
         {
             /*NO callback required for JUST_WORKS*/
-            result = OCSecure::setInputPinCallback(NULL);
+            return;
         }
         if (OIC_RANDOM_DEVICE_PIN == (OicSecOxm_t)OxmType)
         {
index 1c93b32..27e286f 100644 (file)
@@ -32,10 +32,6 @@ if target_os not in ['msys_nt', 'windows']:
 
 provisioning_lib_env.PrependUnique(LIBS = ['octbstack'])
 
-if target_os not in ['msys_nt', 'windows']:
-    # octbstack.dll is exporting ocpmapi and ocsrm APIs on Windows.
-    provisioning_lib_env.PrependUnique(LIBS = ['ocsrm'])
-
 provisioning_lib_env.AppendUnique(LIBS = ['mbedtls', 'mbedx509','mbedcrypto'])
 
 if target_os in ['android']:
index cadb51d..f57095a 100644 (file)
@@ -762,7 +762,7 @@ static OCStackApplicationResult SecurePortDiscoveryHandler(void *ctx, OCDoHandle
                         ((OC_IP_USE_V6 == clientResponse->devAddr.flags &&
                           strchr(eps->addr, ':')) ||
                          (OC_IP_USE_V4 == clientResponse->devAddr.flags &&
-                          strchr(eps->addr, ','))))
+                          strchr(eps->addr, '.'))))
                     {
                             securePort = eps->port;
                             break;
index 290496b..d1a0c77 100644 (file)
@@ -57,7 +57,7 @@ oclib_env.AppendUnique(CPPPATH = [
                ])
 
 oclib_env.AppendUnique(LIBS = ['oc_logger'])
-oclib_env.PrependUnique(LIBS = ['octbstack', 'connectivity_abstraction', 'ocsrm'])
+oclib_env.PrependUnique(LIBS = ['octbstack', 'connectivity_abstraction'])
 
 if 'g++' in oclib_env.get('CXX'):
        oclib_env.AppendUnique(CXXFLAGS = ['-std=c++0x'])