mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
qapi/crypto: Drop temporary 'prefix'
Recent commit "qapi: Smarter camel_to_upper() to reduce need for 'prefix'" added two temporary 'prefix' to delay changing the generated code. Revert them. This improves QCryptoBlockFormat's generated enumeration constant prefix from Q_CRYPTO_BLOCK_FORMAT to QCRYPTO_BLOCK_FORMAT, and QCryptoBlockLUKSKeyslotState's from Q_CRYPTO_BLOCKLUKS_KEYSLOT_STATE to QCRYPTO_BLOCK_LUKS_KEYSLOT_STATE. Signed-off-by: Markus Armbruster <armbru@redhat.com> Acked-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20240904111836.3273842-6-armbru@redhat.com>
This commit is contained in:
parent
55872c7061
commit
d23d2ef3d0
7 changed files with 22 additions and 24 deletions
|
@ -39,14 +39,14 @@
|
|||
#endif
|
||||
|
||||
static QCryptoBlockCreateOptions qcow_create_opts = {
|
||||
.format = Q_CRYPTO_BLOCK_FORMAT_QCOW,
|
||||
.format = QCRYPTO_BLOCK_FORMAT_QCOW,
|
||||
.u.qcow = {
|
||||
.key_secret = (char *)"sec0",
|
||||
},
|
||||
};
|
||||
|
||||
static QCryptoBlockOpenOptions qcow_open_opts = {
|
||||
.format = Q_CRYPTO_BLOCK_FORMAT_QCOW,
|
||||
.format = QCRYPTO_BLOCK_FORMAT_QCOW,
|
||||
.u.qcow = {
|
||||
.key_secret = (char *)"sec0",
|
||||
},
|
||||
|
@ -55,7 +55,7 @@ static QCryptoBlockOpenOptions qcow_open_opts = {
|
|||
|
||||
#ifdef TEST_LUKS
|
||||
static QCryptoBlockOpenOptions luks_open_opts = {
|
||||
.format = Q_CRYPTO_BLOCK_FORMAT_LUKS,
|
||||
.format = QCRYPTO_BLOCK_FORMAT_LUKS,
|
||||
.u.luks = {
|
||||
.key_secret = (char *)"sec0",
|
||||
},
|
||||
|
@ -64,7 +64,7 @@ static QCryptoBlockOpenOptions luks_open_opts = {
|
|||
|
||||
/* Creation with all default values */
|
||||
static QCryptoBlockCreateOptions luks_create_opts_default = {
|
||||
.format = Q_CRYPTO_BLOCK_FORMAT_LUKS,
|
||||
.format = QCRYPTO_BLOCK_FORMAT_LUKS,
|
||||
.u.luks = {
|
||||
.key_secret = (char *)"sec0",
|
||||
},
|
||||
|
@ -73,7 +73,7 @@ static QCryptoBlockCreateOptions luks_create_opts_default = {
|
|||
|
||||
/* ...and with explicit values */
|
||||
static QCryptoBlockCreateOptions luks_create_opts_aes256_cbc_plain64 = {
|
||||
.format = Q_CRYPTO_BLOCK_FORMAT_LUKS,
|
||||
.format = QCRYPTO_BLOCK_FORMAT_LUKS,
|
||||
.u.luks = {
|
||||
.key_secret = (char *)"sec0",
|
||||
.has_cipher_alg = true,
|
||||
|
@ -87,7 +87,7 @@ static QCryptoBlockCreateOptions luks_create_opts_aes256_cbc_plain64 = {
|
|||
|
||||
|
||||
static QCryptoBlockCreateOptions luks_create_opts_aes256_cbc_essiv = {
|
||||
.format = Q_CRYPTO_BLOCK_FORMAT_LUKS,
|
||||
.format = QCRYPTO_BLOCK_FORMAT_LUKS,
|
||||
.u.luks = {
|
||||
.key_secret = (char *)"sec0",
|
||||
.has_cipher_alg = true,
|
||||
|
@ -572,7 +572,7 @@ int main(int argc, char **argv)
|
|||
g_assert(qcrypto_init(NULL) == 0);
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS(test_data); i++) {
|
||||
if (test_data[i].open_opts->format == Q_CRYPTO_BLOCK_FORMAT_LUKS &&
|
||||
if (test_data[i].open_opts->format == QCRYPTO_BLOCK_FORMAT_LUKS &&
|
||||
!qcrypto_hash_supports(test_data[i].hash_alg)) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue