summary refs log tree commit diff stats
path: root/include/crypto/hash.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2015-11-19 17:09:01 +0000
committerDaniel P. Berrange <berrange@redhat.com>2015-12-23 11:02:20 +0000
commitd84b79d358c3e5a490f8b82641b7f99b52458545 (patch)
treeca8c21261c0d771fe1e871730e37f9d3ab62964d /include/crypto/hash.h
parent7b36064c90c377d07d30904318d6cbfe5a133af1 (diff)
downloadfocaccia-qemu-d84b79d358c3e5a490f8b82641b7f99b52458545.tar.gz
focaccia-qemu-d84b79d358c3e5a490f8b82641b7f99b52458545.zip
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>
Diffstat (limited to 'include/crypto/hash.h')
-rw-r--r--include/crypto/hash.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/crypto/hash.h b/include/crypto/hash.h
index 3d1812442f..41822c0a4e 100644
--- a/include/crypto/hash.h
+++ b/include/crypto/hash.h
@@ -24,14 +24,7 @@
 #include "qemu-common.h"
 #include "qapi/error.h"
 
-typedef enum {
-    QCRYPTO_HASH_ALG_MD5,
-    QCRYPTO_HASH_ALG_SHA1,
-    QCRYPTO_HASH_ALG_SHA256,
-
-    QCRYPTO_HASH_ALG_LAST
-} QCryptoHashAlgorithm;
-
+/* See also "QCryptoHashAlgorithm" defined in qapi/crypto.json */
 
 /**
  * qcrypto_hash_supports: