Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Adds 2017 to copyrights
[src/app-framework-main.git]
/
src
/
secmgr-wrap.c
diff --git
a/src/secmgr-wrap.c
b/src/secmgr-wrap.c
index
78680a5
..
1b60ac4
100644
(file)
--- a/
src/secmgr-wrap.c
+++ b/
src/secmgr-wrap.c
@@
-1,5
+1,5
@@
/*
/*
- Copyright 2015 IoT.bzh
+ Copyright 2015
, 2016, 2017
IoT.bzh
author: José Bollo <jose.bollo@iot.bzh>
author: José Bollo <jose.bollo@iot.bzh>
@@
-20,7
+20,11
@@
#include <errno.h>
#include <assert.h>
#include <errno.h>
#include <assert.h>
+#if SIMULATE_SECURITY_MANAGER
+#include "simulation/security-manager.h"
+#else
#include <security-manager.h>
#include <security-manager.h>
+#endif
#include "verbose.h"
#include "secmgr-wrap.h"
#include "verbose.h"
#include "secmgr-wrap.h"
@@
-80,6
+84,17
@@
int secmgr_install()
return retcode(rc);
}
return retcode(rc);
}
+int secmgr_uninstall()
+{
+ int rc;
+ assert(request != NULL);
+ rc = security_manager_app_uninstall(request);
+ if (rc != SECURITY_MANAGER_SUCCESS)
+ ERROR("security_manager_app_uninstall failed");
+ secmgr_cancel();
+ return retcode(rc);
+}
+
int secmgr_permit(const char *permission)
{
int rc;
int secmgr_permit(const char *permission)
{
int rc;