Merge tag 'wireless-next-2023-11-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / include / linux / nvme-keyring.h
CommitLineData
9d77eb52
HR
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (c) 2023 Hannes Reinecke, SUSE Labs
4 */
5
6#ifndef _NVME_KEYRING_H
7#define _NVME_KEYRING_H
8
6affe08a 9#if IS_ENABLED(CONFIG_NVME_KEYRING)
9d77eb52 10
501cc6f4
HR
11key_serial_t nvme_tls_psk_default(struct key *keyring,
12 const char *hostnqn, const char *subnqn);
13
9d77eb52 14key_serial_t nvme_keyring_id(void);
9d77eb52
HR
15
16#else
17
501cc6f4
HR
18static inline key_serial_t nvme_tls_psk_default(struct key *keyring,
19 const char *hostnqn, const char *subnqn)
20{
21 return 0;
22}
9d77eb52
HR
23static inline key_serial_t nvme_keyring_id(void)
24{
25 return 0;
26}
9d77eb52
HR
27#endif /* !CONFIG_NVME_KEYRING */
28#endif /* _NVME_KEYRING_H */