[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v3 18/18] block: pass option prefix down to cryp
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH v3 18/18] block: pass option prefix down to crypto layer |
Date: |
Thu, 9 Feb 2017 01:51:13 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 26.01.2017 11:18, Daniel P. Berrange wrote:
> While the crypto layer uses a fixed option name "key-secret",
> the upper block layer may have a prefix on the options. e.g.
> "luks-key-secret", "aes-key-secret", in order to avoid clashes
> between crypto option names & other block option names. To
> ensure the crypto layer can report accurate error messages,
> we must tell it what option name prefix was used.
>
> Signed-off-by: Daniel P. Berrange <address@hidden>
> ---
> block/crypto.c | 4 ++--
> block/qcow.c | 7 ++++---
> block/qcow2.c | 15 +++++++++------
> crypto/block-luks.c | 8 ++++++--
> crypto/block-qcow.c | 8 ++++++--
> crypto/block.c | 6 ++++--
> crypto/blockpriv.h | 2 ++
> include/crypto/block.h | 6 +++++-
> 8 files changed, 38 insertions(+), 18 deletions(-)
Thanks a lot!
Alas I'm afraid tests/test-crypto-block.c will need a couple of changes,
too (trivial ones, though, just a couple of NULL parameters).
Max
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-block] [PATCH v3 18/18] block: pass option prefix down to crypto layer,
Max Reitz <=