aboutsummaryrefslogtreecommitdiff
path: root/ks_token.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-05-30 18:54:41 -0400
committerRob Austein <sra@hactrn.net>2017-05-30 18:54:41 -0400
commitf3a7d2993b46e981208ac68996db609a31d80163 (patch)
treee32e9fbbfcc1017d8755fc8aeab67dc288cd5e0e /ks_token.c
parentade02ebabf88481bc763ea6a9b2f97e87f0a6210 (diff)
parent358b3803cdedad607cf649221d0b7e3ce66b45f2 (diff)
Merge branch 'logout' into ks9
The internal keystore API has changed enough since where the "logout" branch forked that a plain merge would have no prayer of compiling, must less running. So this merge goes well beyond manual conflict resolution: it salvages the useful code from the "logout" branch, with additional code as needed to reimplement the functionality. Sorry.
Diffstat (limited to 'ks_token.c')
-rw-r--r--ks_token.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ks_token.c b/ks_token.c
index e69eb02..e29a90d 100644
--- a/ks_token.c
+++ b/ks_token.c
@@ -289,6 +289,12 @@ static hal_error_t ks_token_copy_owner(hal_ks_t *ks,
return HAL_OK;
}
+static hal_error_t ks_token_logout(hal_ks_t *ks,
+ hal_client_handle_t client)
+{
+ return HAL_OK;
+}
+
/*
* Forward reference.
*/
@@ -394,7 +400,8 @@ static const hal_ks_driver_t ks_token_driver = {
.erase_maybe = ks_token_erase_maybe,
.set_owner = ks_token_set_owner,
.test_owner = ks_token_test_owner,
- .copy_owner = ks_token_copy_owner
+ .copy_owner = ks_token_copy_owner,
+ .logout = ks_token_logout
};
static ks_token_db_t _db = { .ks.driver = &ks_token_driver };