xemu/include/crypto
Mike Frysinger c8d70e5973 crypto: aes: always rename internal symbols
OpenSSL's libcrypto always defines AES symbols with the same names as
qemu's local aes code.  This is problematic when enabling at least curl
as that frequently also uses libcrypto.  It might not be noticed when
running, but if you try to statically link, everything falls down.

An example snippet:
  LINK  qemu-nbd
.../libcrypto.a(aes-x86_64.o): In function 'AES_encrypt':
(.text+0x460): multiple definition of 'AES_encrypt'
crypto/aes.o:aes.c:(.text+0x670): first defined here
.../libcrypto.a(aes-x86_64.o): In function 'AES_decrypt':
(.text+0x9f0): multiple definition of 'AES_decrypt'
crypto/aes.o:aes.c:(.text+0xb30): first defined here
.../libcrypto.a(aes-x86_64.o): In function 'AES_cbc_encrypt':
(.text+0xf90): multiple definition of 'AES_cbc_encrypt'
crypto/aes.o:aes.c:(.text+0xff0): first defined here
collect2: error: ld returned 1 exit status
.../qemu-2.6.0/rules.mak:105: recipe for target 'qemu-nbd' failed
make: *** [qemu-nbd] Error 1

The aes.h header has redefines already for FreeBSD, but go ahead and
enable that for everyone since there's no real good reason to not use
a namespace all the time.

Signed-off-by: Mike Frysinger <vapier@chromium.org>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2016-06-13 12:41:17 +01:00
..
aes.h crypto: aes: always rename internal symbols 2016-06-13 12:41:17 +01:00
afsplit.h crypto: add support for anti-forensic split algorithm 2016-03-17 14:41:14 +00:00
block.h crypto: add block encryption framework 2016-03-17 14:41:15 +00:00
cipher.h include/crypto: Include qapi-types.h or qemu/bswap.h instead of qemu-common.h 2016-03-22 22:20:16 +01:00
desrfb.h crypto: move built-in D3DES implementation into crypto/ 2015-07-07 12:04:31 +02:00
hash.h include/crypto: Include qapi-types.h or qemu/bswap.h instead of qemu-common.h 2016-03-22 22:20:16 +01:00
init.h include/crypto: Include qapi-types.h or qemu/bswap.h instead of qemu-common.h 2016-03-22 22:20:16 +01:00
ivgen.h crypto: add support for generating initialization vectors 2016-03-17 14:41:14 +00:00
pbkdf.h crypto: add support for PBKDF2 algorithm 2016-03-17 14:41:07 +00:00
random.h Fix some typos found by codespell 2016-05-18 15:04:27 +03:00
secret.h include/crypto: Include qapi-types.h or qemu/bswap.h instead of qemu-common.h 2016-03-22 22:20:16 +01:00
tlscreds.h include/crypto: Include qapi-types.h or qemu/bswap.h instead of qemu-common.h 2016-03-22 22:20:16 +01:00
tlscredsanon.h crypto: introduce new module for TLS anonymous credentials 2015-09-15 15:00:20 +01:00
tlscredsx509.h crypto: add support for loading encrypted x509 keys 2015-12-18 16:25:08 +00:00
tlssession.h crypto: fix description of @errp parameter initialization 2016-02-01 14:11:35 +00:00
xts.h crypto: import an implementation of the XTS cipher mode 2016-03-17 14:41:15 +00:00