Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
libnvme.26914
0008-libnvme-accessors-for-dhchap_key-variables...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0008-libnvme-accessors-for-dhchap_key-variables.patch of Package libnvme.26914
From: Hannes Reinecke <hare@suse.de> Date: Thu, 28 Jul 2022 18:12:07 +0200 Subject: libnvme: accessors for dhchap_key variables Git-commit: 32b7684d14e9650e0deacabb1be32c845f6f3dd3 References: bsc#1201501 bsc#1201700 To insulate against changes with the dhchap key handling in the library itself introduce accessor functions for the SWIG wrapper. Signed-off-by: Hannes Reinecke <hare@suse.de> Acked-by: Daniel Wagner <dwagner@suse.de> --- libnvme/nvme.i | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) --- a/libnvme/nvme.i +++ b/libnvme/nvme.i @@ -285,7 +285,9 @@ struct nvme_host { char *hostnqn; char *hostid; char *hostsymname; - char *dhchap_key; + %extend { + char *dhchap_key; + } }; struct nvme_subsystem { @@ -330,7 +332,9 @@ struct nvme_ctrl { char *subsysnqn; char *traddr; char *trsvcid; - char *dhchap_key; + %extend { + char *dhchap_key; + } char *cntrltype; char *dctype; bool discovery_ctrl; @@ -446,6 +450,15 @@ struct nvme_ns { } } +%{ + const char *nvme_host_dhchap_key_get(struct nvme_host *h) { + return nvme_host_get_dhchap_key(h); + } + void nvme_host_dhchap_key_set(struct nvme_host *h, char *key) { + nvme_host_set_dhchap_key(h, key); + } +%}; + %extend subsystem_iter { struct subsystem_iter *__iter__() { return $self; @@ -654,6 +667,9 @@ struct nvme_ns { const char *nvme_ctrl_state_get(struct nvme_ctrl *c) { return nvme_ctrl_get_state(c); } + const char *nvme_ctrl_dhchap_key_get(struct nvme_ctrl *c) { + return nvme_ctrl_get_dhchap_key(c); + } %}; %extend nvme_ns {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor