summaryrefslogtreecommitdiff
path: root/src/home/homectl-pkcs11.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-19 11:05:44 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-07-21 17:42:16 +0200
commit7cbb7d62c6ca4902297d594e8a78d5a12a834ebe (patch)
tree87247aa0018ccb995972bb5a5cc44ff3f18b6e89 /src/home/homectl-pkcs11.c
parent06847d0fba128e345c1c27b7f7124f37b897095d (diff)
downloadsystemd-7cbb7d62c6ca4902297d594e8a78d5a12a834ebe.tar.gz
homectl: fix warning about unused function
../src/home/homectl-pkcs11.c:19:13: warning: ‘pkcs11_callback_data_release’ defined but not used [-Wunused-function] 19 | static void pkcs11_callback_data_release(struct pkcs11_callback_data *data) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'src/home/homectl-pkcs11.c')
-rw-r--r--src/home/homectl-pkcs11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/home/homectl-pkcs11.c b/src/home/homectl-pkcs11.c
index 830aafaab1..f4253ed7bf 100644
--- a/src/home/homectl-pkcs11.c
+++ b/src/home/homectl-pkcs11.c
@@ -16,12 +16,12 @@ struct pkcs11_callback_data {
X509 *cert;
};
+#if HAVE_P11KIT
static void pkcs11_callback_data_release(struct pkcs11_callback_data *data) {
erase_and_free(data->pin_used);
X509_free(data->cert);
}
-#if HAVE_P11KIT
static int pkcs11_callback(
CK_FUNCTION_LIST *m,
CK_SESSION_HANDLE session,