From 5efdadd345418819f01d1a387c240367d85e0d3e Mon Sep 17 00:00:00 2001 From: Manasij Sur Roy Date: Fri, 16 Jun 2017 17:07:38 +0530 Subject: [PATCH] Added missing title and description support Change-Id: I68e3004a330d7bbb217df168f4360aac377e9001 Signed-off-by: Manasij Sur Roy --- server/auth_discovery/src/BAuthStub.cpp | 4 ++-- silent_auth/silent_auth_entry.cpp | 16 ++++++++++++++++ silent_auth/silent_auth_entry.h | 5 +++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/server/auth_discovery/src/BAuthStub.cpp b/server/auth_discovery/src/BAuthStub.cpp index a4eb035..88bc19d 100644 --- a/server/auth_discovery/src/BAuthStub.cpp +++ b/server/auth_discovery/src/BAuthStub.cpp @@ -79,8 +79,8 @@ BAuthStub::getInfo(void) /*Fill-up additional data*/ __cachedData->attach_hint = ATTACHMENT_HINT_INTERNAL; /*__cachedData->attach_hint = __pluginHandle->conn->attach_hint();*/ - /*__cachedData->title = __pluginHandle->conn->title();*/ - /*__cachedData->description = __pluginHandle->conn->description();*/ + __cachedData->title = __pluginHandle->conn->title(); + __cachedData->description = __pluginHandle->conn->description(); } /*Resetting fields altered during last RA operation*/ diff --git a/silent_auth/silent_auth_entry.cpp b/silent_auth/silent_auth_entry.cpp index ac23823..ac3718f 100644 --- a/silent_auth/silent_auth_entry.cpp +++ b/silent_auth/silent_auth_entry.cpp @@ -1114,6 +1114,22 @@ fido_auth_plugin_de_init(void) return 0; } +EXPORT_API char * +fido_auth_plugin_get_title(void) +{ + char *title = (char *)calloc(128, sizeof(char)); + snprintf(title, 128 - 1, "%s", "Tizen FIDO Authenticator"); + return title; +} + +EXPORT_API char * +fido_auth_plugin_get_description(void) +{ + char *desc = (char *)calloc(128, sizeof(char)); + snprintf(desc, 128 - 1, "%s", "Tizen FIDO PIN Authenticator"); + return desc; +} + /*int fido_auth_plugin_get_assertion_scheme(char **scheme); unsigned char* fido_auth_plugin_encode_assertion(int tag, const void *data); void* fido_auth_plugin_decode_assertion(int tag, unsigned char *assrt);*/ diff --git a/silent_auth/silent_auth_entry.h b/silent_auth/silent_auth_entry.h index 3c65036..3486943 100644 --- a/silent_auth/silent_auth_entry.h +++ b/silent_auth/silent_auth_entry.h @@ -29,6 +29,11 @@ fido_auth_plugin_is_connected(void); EXPORT_API int fido_auth_plugin_de_init(void); +EXPORT_API char * +fido_auth_plugin_get_title(void); + +EXPORT_API char * +fido_auth_plugin_get_description(void); //int fido_auth_plugin_get_assertion_scheme(char **scheme); //unsigned char* fido_auth_plugin_encode_assertion(int tag, const void *data); //void* fido_auth_plugin_decode_assertion(int tag, unsigned char *assrt); -- 2.7.4