From 231878de9d8463b55a935e0c55f5f1108196e665 Mon Sep 17 00:00:00 2001 From: Zoltan Fridrich Date: Wed, 20 Sep 2023 11:01:42 +0200 Subject: [PATCH] Use only token URI as profiles arent storage objects Signed-off-by: Zoltan Fridrich --- p11-kit/delete-profile.c | 2 +- p11-kit/list-profiles.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/p11-kit/delete-profile.c b/p11-kit/delete-profile.c index edc600f1..9e06b31d 100644 --- a/p11-kit/delete-profile.c +++ b/p11-kit/delete-profile.c @@ -80,7 +80,7 @@ delete_profile (const char *token_str, goto cleanup; } - if (p11_kit_uri_parse (token_str, P11_KIT_URI_FOR_OBJECT_ON_TOKEN, uri) != P11_KIT_URI_OK) { + if (p11_kit_uri_parse (token_str, P11_KIT_URI_FOR_TOKEN, uri) != P11_KIT_URI_OK) { p11_message (_("failed to parse URI")); goto cleanup; } diff --git a/p11-kit/list-profiles.c b/p11-kit/list-profiles.c index 342aa3ca..3f8ee4fc 100644 --- a/p11-kit/list-profiles.c +++ b/p11-kit/list-profiles.c @@ -76,7 +76,7 @@ list_profiles (const char *token_str) goto cleanup; } - if (p11_kit_uri_parse (token_str, P11_KIT_URI_FOR_OBJECT_ON_TOKEN, uri) != P11_KIT_URI_OK) { + if (p11_kit_uri_parse (token_str, P11_KIT_URI_FOR_TOKEN, uri) != P11_KIT_URI_OK) { p11_message (_("failed to parse URI")); goto cleanup; }