Remove boost dependency
[platform/core/appfw/app-installers.git] / src / common / step / security / step_unregister_trust_anchor.cc
index 2f905d9..b99a848 100644 (file)
@@ -5,13 +5,14 @@
 #include "common/step/security/step_unregister_trust_anchor.h"
 
 #include <trust-anchor.h>
-#include <boost/filesystem.hpp>
+
+#include <filesystem>
 #include <string>
 
 namespace common_installer {
 namespace security {
 
-namespace bf = boost::filesystem;
+namespace fs = std::filesystem;
 
 const char kTpkTrustAnchorPath[] = "res/.trust-anchor";
 
@@ -46,9 +47,9 @@ Step::Status StepUnregisterTrustAnchor::undo() {
   if (!manifest->use_system_certs)
     return Step::Status::OK;
 
-  bf::path pkg_certs_path = context_->GetPkgPath() / kTpkTrustAnchorPath;
+  fs::path pkg_certs_path = context_->GetPkgPath() / kTpkTrustAnchorPath;
   int ret = trust_anchor_install(context_->pkgid.get().c_str(),
-      context_->uid.get(), pkg_certs_path.string().c_str(),
+      context_->uid.get(), pkg_certs_path.c_str(),
       (strcasecmp(manifest->use_system_certs, "true") == 0) ? true : false);
 
   if (ret != TRUST_ANCHOR_ERROR_NONE) {