summaryrefslogtreecommitdiff
path: root/vpn/vpn-provider.c
diff options
context:
space:
mode:
authorYu Jiung <jiung.yu@samsung.com>2017-03-06 10:48:48 +0900
committerJiung Yu <jiung.yu@samsung.com>2017-04-13 16:50:05 +0900
commit13294d79e3412a68c541fd6a22840bf85521a420 (patch)
tree0fbf7db7c24b4eeeecdc711f18ed011e7d4c58b1 /vpn/vpn-provider.c
parent7859b3f51163cdb798423679bf291ffe27eff988 (diff)
downloadconnman-13294d79e3412a68c541fd6a22840bf85521a420.tar.gz
connman-13294d79e3412a68c541fd6a22840bf85521a420.tar.bz2
connman-13294d79e3412a68c541fd6a22840bf85521a420.zip
Add processing request & response vici message with socketipsec
Change-Id: I06ff60de06fde1ac8f484b1eecf49afed6d02542 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
Diffstat (limited to 'vpn/vpn-provider.c')
-rwxr-xr-xvpn/vpn-provider.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/vpn/vpn-provider.c b/vpn/vpn-provider.c
index 16c0c2be..925f6997 100755
--- a/vpn/vpn-provider.c
+++ b/vpn/vpn-provider.c
@@ -1757,6 +1757,7 @@ static void provider_create_all_from_type(const char *provider_type)
g_strfreev(providers);
}
+#if !defined TIZEN_EXT
char *__vpn_provider_create_identifier(const char *host, const char *domain)
{
char *ident;
@@ -1769,6 +1770,20 @@ char *__vpn_provider_create_identifier(const char *host, const char *domain)
return ident;
}
+#else
+char *__vpn_provider_create_identifier(const char *host, const char *domain, const char *name)
+{
+ char *ident;
+
+ ident = g_strdup_printf("%s_%s_%s", host, domain, name);
+ if (!ident)
+ return NULL;
+
+ provider_dbus_ident(ident);
+
+ return ident;
+}
+#endif
int __vpn_provider_create(DBusMessage *msg)
{
@@ -1822,7 +1837,11 @@ int __vpn_provider_create(DBusMessage *msg)
if (!type || !name)
return -EOPNOTSUPP;
+#if !defined TIZEN_EXT
ident = __vpn_provider_create_identifier(host, domain);
+#else
+ ident = __vpn_provider_create_identifier(host, domain, name);
+#endif
DBG("ident %s", ident);
provider = __vpn_provider_lookup(ident);
@@ -2011,7 +2030,11 @@ int __vpn_provider_create_from_config(GHashTable *settings,
goto fail;
}
+#if !defined TIZEN_EXT
ident = __vpn_provider_create_identifier(host, domain);
+#else
+ ident = __vpn_provider_create_identifier(host, domain, name);
+#endif
DBG("ident %s", ident);
provider = __vpn_provider_lookup(ident);