Manufacturer certificate based OTM fix 73/23073/3
authorOleksii Beketov <ol.beketov@samsung.com>
Tue, 31 Oct 2017 12:27:23 +0000 (14:27 +0200)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Thu, 2 Nov 2017 19:30:01 +0000 (19:30 +0000)
Improper callbacks registration removed.
Manufacturer certificate related info and ciphers
callbacks are already set in StartOwnershipTransfer.

Change-Id: Id1cb14cb31e4325d17961737fa87e0224735235a
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
resource/csdk/security/src/doxmresource.c

index 60cff92..b473460 100644 (file)
@@ -1628,15 +1628,6 @@ static OCEntityHandlerResult HandleDoxmPostRequest(OCEntityHandlerRequest *ehReq
 #endif //MULTIPLE_OWNER
 #endif // defined(__WITH_DTLS__) || defined (__WITH_TLS__)
 
- #if defined(__WITH_DTLS__) || defined (__WITH_TLS__)
-    if (OIC_MANUFACTURER_CERTIFICATE == gDoxm->oxmSel ||
-        OIC_CON_MFG_CERT == gDoxm->oxmSel)
-    {
-        CAregisterPkixInfoHandler(GetPkixInfo);
-        CAregisterGetCredentialTypesHandler(InitCipherSuiteList);
-    }
-#endif // __WITH_DTLS__ or __WITH_TLS__
-
     // Update new state in persistent storage
     ehRet = HandleDoxmPostRequestUpdatePS(fACE);