mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
crypto: move QCryptoHashAlgorithm enum definition into QAPI
The QCryptoHashAlgorithm enum is defined in the crypto/hash.h header. In the future some QAPI types will want to reference the hash enums, so move the enum definition into QAPI too. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
7b36064c90
commit
d84b79d358
3 changed files with 18 additions and 10 deletions
|
@ -33,3 +33,18 @@
|
|||
{ 'enum': 'QCryptoSecretFormat',
|
||||
'prefix': 'QCRYPTO_SECRET_FORMAT',
|
||||
'data': ['raw', 'base64']}
|
||||
|
||||
|
||||
##
|
||||
# QCryptoHashAlgorithm:
|
||||
#
|
||||
# The supported algorithms for computing content digests
|
||||
#
|
||||
# @md5: MD5. Should not be used in any new code, legacy compat only
|
||||
# @sha1: SHA-1. Should not be used in any new code, legacy compat only
|
||||
# @sha256: SHA-256. Current recommended strong hash.
|
||||
# Since: 2.6
|
||||
##
|
||||
{ 'enum': 'QCryptoHashAlgorithm',
|
||||
'prefix': 'QCRYPTO_HASH_ALG',
|
||||
'data': ['md5', 'sha1', 'sha256']}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue