Skip to content

linux: Add support to generate DH-HMAC-CHAP keys#158

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:nvme_gen_dhchap_key
Jan 7, 2022
Merged

linux: Add support to generate DH-HMAC-CHAP keys#158
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:nvme_gen_dhchap_key

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented Dec 23, 2021

Initially the DH-HMAC-CHAP key generation code was part of the
nvme-cli repository and depended on OpenSSL 1. Move the key generation
code into the library. While at it also add support for OpenSSL 3.

Signed-off-by: Daniel Wagner dwagner@suse.de

@igaw igaw force-pushed the nvme_gen_dhchap_key branch from 1c6334b to 8c28ade Compare December 23, 2021 14:34
@igaw
Copy link
Copy Markdown
Collaborator Author

igaw commented Dec 23, 2021

I can't get nvme-cli linking this as subproject. The linker is not adding libuuid, json-c nor openssl when tries to link. Something is not correctly setup with meson.

@igaw
Copy link
Copy Markdown
Collaborator Author

igaw commented Dec 23, 2021

I think the problem is caused by libnvme getting the wrong 'config.h' as input. Not the the one from the subprojects instead the main one.

@igaw igaw force-pushed the nvme_gen_dhchap_key branch 2 times, most recently from cc7550e to 726c19d Compare December 23, 2021 16:17
@igaw
Copy link
Copy Markdown
Collaborator Author

igaw commented Dec 23, 2021

Alright figured it out. Moving the config.h to libnvme is the right thing to do, but obviously, ccan was not happy. The trick is to use internal lookup path. Now things are working :)

Comment thread src/libnvme.map Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect.

@igaw igaw mentioned this pull request Dec 27, 2021
@igaw igaw force-pushed the nvme_gen_dhchap_key branch from 726c19d to 0e1d56b Compare December 29, 2021 07:57
@igaw igaw added the enhancement New feature or request label Jan 7, 2022
@igaw igaw added this to the 1.0 milestone Jan 7, 2022
Initially the DH-HMAC-CHAP key generation code was part of the
nvme-cli repository and depended on OpenSSL 1. Move the key generation
code into the library. While at it also add support for OpenSSL 3.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
@igaw igaw force-pushed the nvme_gen_dhchap_key branch from 0e1d56b to 436898e Compare January 7, 2022 13:01
@igaw
Copy link
Copy Markdown
Collaborator Author

igaw commented Jan 7, 2022

Just a rebase; checking if build is still good.

@igaw igaw merged commit f8c81dd into linux-nvme:master Jan 7, 2022
@igaw igaw deleted the nvme_gen_dhchap_key branch February 1, 2022 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants