xref: /spdk/lib/nvmf/stubs.c (revision 0fd542bcf43352bf25e48e6f131fe30f26f7c1b8)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2024 Intel Corporation
3  */
4 
5 #include "spdk/config.h"
6 #include "spdk/log.h"
7 #include "spdk/nvmf_transport.h"
8 
9 #include "nvmf_internal.h"
10 
11 #ifndef SPDK_CONFIG_HAVE_EVP_MAC
12 int
13 nvmf_qpair_auth_init(struct spdk_nvmf_qpair *qpair)
14 {
15 	return -ENOTSUP;
16 }
17 
18 void
19 nvmf_qpair_auth_destroy(struct spdk_nvmf_qpair *qpair)
20 {
21 	assert(qpair->auth == NULL);
22 }
23 
24 int
25 nvmf_auth_request_exec(struct spdk_nvmf_request *req)
26 {
27 	struct spdk_nvme_cpl *cpl = &req->rsp->nvme_cpl;
28 
29 	cpl->status.sct = SPDK_NVME_SCT_GENERIC;
30 	cpl->status.sc = SPDK_NVME_SC_INVALID_OPCODE;
31 
32 	spdk_nvmf_request_complete(req);
33 
34 	return SPDK_NVMF_REQUEST_EXEC_STATUS_ASYNCHRONOUS;
35 }
36 
37 bool
38 nvmf_auth_is_supported(void)
39 {
40 	return false;
41 }
42 
43 SPDK_LOG_REGISTER_COMPONENT(nvmf_auth)
44 #endif /* !SPDK_CONFIG_HAVE_EVP_MAC */
45