crypto: use local path for local headers
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 3 May 2018 19:50:23 +0000 (22:50 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Jun 2018 16:20:37 +0000 (19:20 +0300)
When pulling in headers that are in the same directory as the C file (as
opposed to one in include/), we should use its relative path, without a
directory.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Daniel P. Berrangé <berrange@redhat.com>
16 files changed:
crypto/block-luks.c
crypto/block-luks.h
crypto/block-qcow.c
crypto/block-qcow.h
crypto/block.c
crypto/cipher.c
crypto/ivgen-essiv.c
crypto/ivgen-essiv.h
crypto/ivgen-plain.c
crypto/ivgen-plain.h
crypto/ivgen-plain64.c
crypto/ivgen-plain64.h
crypto/ivgen.c
crypto/tlscreds.c
crypto/tlscredsanon.c
crypto/tlscredsx509.c

index d418ac30b8104304ab31090a6b8d963aec021147..57381247733729a50b840ce003748325be4be4b0 100644 (file)
@@ -22,7 +22,7 @@
 #include "qapi/error.h"
 #include "qemu/bswap.h"
 
-#include "crypto/block-luks.h"
+#include "block-luks.h"
 
 #include "crypto/hash.h"
 #include "crypto/afsplit.h"
index b2d8a35c1bc5ef186fe973f75c23e6d20ff73d12..befd8b2c56c8ac5d07c773753db14699eedf80a5 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef QCRYPTO_BLOCK_LUKS_H
 #define QCRYPTO_BLOCK_LUKS_H
 
-#include "crypto/blockpriv.h"
+#include "blockpriv.h"
 
 extern const QCryptoBlockDriver qcrypto_block_driver_luks;
 
index 8817d6aaa75d9d17fd964f6f6c34eec2878aaa9e..4284e05167eb557a40124a9921129925e98e9d7a 100644 (file)
@@ -27,7 +27,7 @@
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 
-#include "crypto/block-qcow.h"
+#include "block-qcow.h"
 #include "crypto/secret.h"
 
 #define QCRYPTO_BLOCK_QCOW_SECTOR_SIZE 512
index 3e2c0a851a1f3454a003192100a58f4f02d57881..6988fb210bf3e79b1825bc7de1a65ede9718e339 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef QCRYPTO_BLOCK_QCOW_H
 #define QCRYPTO_BLOCK_QCOW_H
 
-#include "crypto/blockpriv.h"
+#include "blockpriv.h"
 
 extern const QCryptoBlockDriver qcrypto_block_driver_qcow;
 
index f206d5eea8bbe995db592e4e596eda2d6afc9db7..e59d1140fe18a77ee0baa4dc224f2dc24ddc7ca2 100644 (file)
@@ -20,9 +20,9 @@
 
 #include "qemu/osdep.h"
 #include "qapi/error.h"
-#include "crypto/blockpriv.h"
-#include "crypto/block-qcow.h"
-#include "crypto/block-luks.h"
+#include "blockpriv.h"
+#include "block-qcow.h"
+#include "block-luks.h"
 
 static const QCryptoBlockDriver *qcrypto_block_drivers[] = {
     [Q_CRYPTO_BLOCK_FORMAT_QCOW] = &qcrypto_block_driver_qcow,
index bcbfb3d5b858d174d620b437f0fc732f9ade6e77..b3af57961b99aab70a02d522e29a99521e2191c4 100644 (file)
@@ -150,11 +150,11 @@ qcrypto_cipher_munge_des_rfb_key(const uint8_t *key,
 #endif /* CONFIG_GCRYPT || CONFIG_NETTLE */
 
 #ifdef CONFIG_GCRYPT
-#include "crypto/cipher-gcrypt.c"
+#include "cipher-gcrypt.c"
 #elif defined CONFIG_NETTLE
-#include "crypto/cipher-nettle.c"
+#include "cipher-nettle.c"
 #else
-#include "crypto/cipher-builtin.c"
+#include "cipher-builtin.c"
 #endif
 
 QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgorithm alg,
index aeaa8fcd5b101dc5115949724f852e226981e6a3..43e258c6f7cec7cf3ca7e8a3db9000dc44d23e7a 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "qemu/osdep.h"
 #include "qemu/bswap.h"
-#include "crypto/ivgen-essiv.h"
+#include "ivgen-essiv.h"
 
 typedef struct QCryptoIVGenESSIV QCryptoIVGenESSIV;
 struct QCryptoIVGenESSIV {
index 4a00af849a38ee251df08309e3da452f4a933bb0..f34dbab57b8dbffc82a408abf96984e871a6729d 100644 (file)
@@ -18,7 +18,7 @@
  *
  */
 
-#include "crypto/ivgenpriv.h"
+#include "ivgenpriv.h"
 
 #ifndef QCRYPTO_IVGEN_ESSIV_H__
 #define QCRYPTO_IVGEN_ESSIV_H__
index bf2fb7aac40fa3f5240952d3ae79fcfa0bbbfafd..06f4145fe51068118f7c6ab79833971f2aa0dcb5 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "qemu/osdep.h"
 #include "qemu/bswap.h"
-#include "crypto/ivgen-plain.h"
+#include "ivgen-plain.h"
 
 static int qcrypto_ivgen_plain_init(QCryptoIVGen *ivgen,
                                     const uint8_t *key, size_t nkey,
index 0fe8835c3ef363c3447f45aa06e1b06691f48924..16e1ae5b27d472cba00f23f77ce04a18d28ed107 100644 (file)
@@ -18,7 +18,7 @@
  *
  */
 
-#include "crypto/ivgenpriv.h"
+#include "ivgenpriv.h"
 
 #ifndef QCRYPTO_IVGEN_PLAIN_H__
 #define QCRYPTO_IVGEN_PLAIN_H__
index e4679a1e6e7f4f58ee3a7bd6ab9ed6a224b9d0ca..fbb7724b20a398341a1dad75ec0e5e8a44eca491 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "qemu/osdep.h"
 #include "qemu/bswap.h"
-#include "crypto/ivgen-plain.h"
+#include "ivgen-plain.h"
 
 static int qcrypto_ivgen_plain_init(QCryptoIVGen *ivgen,
                                     const uint8_t *key, size_t nkey,
index c4104459b5229f62762c52b2d8343dd6bcb67184..f8611bd705ffaa3d8f91304fffb41f1539906a7b 100644 (file)
@@ -18,7 +18,7 @@
  *
  */
 
-#include "crypto/ivgenpriv.h"
+#include "ivgenpriv.h"
 
 #ifndef QCRYPTO_IVGEN_PLAIN64_H__
 #define QCRYPTO_IVGEN_PLAIN64_H__
index f66435112b6e9eaab2606b3c52b7965fb685cbdb..6a2b3ad01e58b8ab64c49c03b1d78d3a94ce08db 100644 (file)
 #include "qemu/osdep.h"
 #include "qapi/error.h"
 
-#include "crypto/ivgenpriv.h"
-#include "crypto/ivgen-plain.h"
-#include "crypto/ivgen-plain64.h"
-#include "crypto/ivgen-essiv.h"
+#include "ivgenpriv.h"
+#include "ivgen-plain.h"
+#include "ivgen-plain64.h"
+#include "ivgen-essiv.h"
 
 
 QCryptoIVGen *qcrypto_ivgen_new(QCryptoIVGenAlgorithm alg,
index 3cd41035bbe831fb485b430d93f56fd1ae59e1f4..02255a6f3c6e0f08e09a125766bba1cd014fa4db 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "qemu/osdep.h"
 #include "qapi/error.h"
-#include "crypto/tlscredspriv.h"
+#include "tlscredspriv.h"
 #include "trace.h"
 
 #define DH_BITS 2048
index 14642200800413e811663a00df64638d4e8d84c1..7ad66d1e7d123cbd2dc529e0dfd0d59164e66d6c 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "qemu/osdep.h"
 #include "crypto/tlscredsanon.h"
-#include "crypto/tlscredspriv.h"
+#include "tlscredspriv.h"
 #include "qapi/error.h"
 #include "qom/object_interfaces.h"
 #include "trace.h"
index 50eb54f6bbca4247596c256641f5687f7b4e9695..98ee0424e581c259b123686d74a251ccacf0b759 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "qemu/osdep.h"
 #include "crypto/tlscredsx509.h"
-#include "crypto/tlscredspriv.h"
+#include "tlscredspriv.h"
 #include "crypto/secret.h"
 #include "qapi/error.h"
 #include "qom/object_interfaces.h"