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) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
06847d0fba
commit
7cbb7d62c6
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue