summaryrefslogtreecommitdiff
path: root/src/transec/Api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/transec/Api.cpp')
-rw-r--r--src/transec/Api.cpp75
1 files changed, 0 insertions, 75 deletions
diff --git a/src/transec/Api.cpp b/src/transec/Api.cpp
deleted file mode 100644
index be85acb..0000000
--- a/src/transec/Api.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * @file Api.cpp
- * @author Sangwan Kwon (sangwan.kwon@samsung.com)
- * @version 0.1
- * @brief Implementation of trust anchor CAPI.
- */
-#include "tanchor/trust-anchor.h"
-
-#include "TrustAnchor.h"
-
-using namespace transec;
-
-int trust_anchor_global_install(const char *package_id,
- const char *app_certificates_path,
- bool with_system_certificates)
-{
- TrustAnchor ta(package_id, app_certificates_path);
- return ta.install(with_system_certificates);
-}
-
-int trust_anchor_usr_install(const char *package_id,
- const char *app_certificates_path,
- uid_t uid,
- bool with_system_certificates)
-{
- TrustAnchor ta(package_id, app_certificates_path, uid);
- return ta.install(with_system_certificates);
-}
-
-int trust_anchor_global_launch(const char *package_id,
- const char *app_certificates_path,
- bool with_system_certificates)
-{
- TrustAnchor ta(package_id, app_certificates_path);
- return ta.launch(with_system_certificates);
-}
-
-int trust_anchor_usr_launch(const char *package_id,
- const char *app_certificates_path,
- uid_t uid,
- bool with_system_certificates)
-{
- TrustAnchor ta(package_id, app_certificates_path, uid);
- return ta.launch(with_system_certificates);
-}
-
-int trust_anchor_global_uninstall(const char *package_id,
- const char *app_certificates_path)
-{
- TrustAnchor ta(package_id, app_certificates_path);
- return ta.uninstall();
-}
-
-int trust_anchor_usr_uninstall(const char *package_id,
- const char *app_certificates_path,
- uid_t uid)
-{
- TrustAnchor ta(package_id, app_certificates_path, uid);
- return ta.uninstall();
-}