Revert "Implementation of ExtensionEncryption with CryptsetupEngine"
[platform/core/security/ode.git] / server / external-encryption.cpp
index c8b96bd..984cbbe 100644 (file)
@@ -67,7 +67,7 @@ void externalCallback(dbus::Variant parameters)
        char* strparams[7];
 
        parameters.get("(issssssisibii)",
-               &intparams[0], // block type: 0 - scsi, 1 : mmc, 2 : mapper
+               &intparams[0], // block type: 0 - scsi, 1 : mmc
                &strparams[0], // devnode
                &strparams[1], // syspath
                &strparams[2], // usage
@@ -81,14 +81,6 @@ void externalCallback(dbus::Variant parameters)
                &intparams[4], // flags: 1 - unmounted 2 - broken filesystem 4 - no filesystem 8 - not supported 16 - readonly
                &intparams[5]); // strage id
 
-       // TODO: this implementation probably would do better if it was on par with
-       // ExtensionEncryption in terms of how it detects and reacts to card events
-       if (intparams[0] != 1 || (std::string(strparams[3]) != "vfat" &&
-                                                         std::string(strparams[3]) != "ext4")) {
-               DEBUG(SINK, "Storaged says it's not a regular SD card. Ignoring.");
-               return;
-       }
-
        if(intparams[2] == 0) {
                INFO(SINK, "Unmounted");
        } else {