2023-08-24 10:39:08 -04:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2023 Hannes Reinecke, SUSE Labs
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NVME_KEYRING_H
|
|
|
|
#define _NVME_KEYRING_H
|
|
|
|
|
2023-10-26 09:08:03 -04:00
|
|
|
#if IS_ENABLED(CONFIG_NVME_KEYRING)
|
2023-08-24 10:39:08 -04:00
|
|
|
|
2023-08-24 10:39:12 -04:00
|
|
|
key_serial_t nvme_tls_psk_default(struct key *keyring,
|
|
|
|
const char *hostnqn, const char *subnqn);
|
|
|
|
|
2023-08-24 10:39:08 -04:00
|
|
|
key_serial_t nvme_keyring_id(void);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2023-08-24 10:39:12 -04:00
|
|
|
static inline key_serial_t nvme_tls_psk_default(struct key *keyring,
|
|
|
|
const char *hostnqn, const char *subnqn)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2023-08-24 10:39:08 -04:00
|
|
|
static inline key_serial_t nvme_keyring_id(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif /* !CONFIG_NVME_KEYRING */
|
|
|
|
#endif /* _NVME_KEYRING_H */
|