From: Sean Bruno <sbruno@freebsd.org>
To: qemu-devel@nongnu.org
Cc: Sean Bruno <sbruno@freebsd.org>
Subject: [Qemu-devel] [PATCH 2/3 v2] bsd-user: Add patches to fix AES_* link errors
Date: Sun, 15 Jun 2014 13:47:31 -0700 [thread overview]
Message-ID: <1402865252-25671-3-git-send-email-sbruno@freebsd.org> (raw)
In-Reply-To: <1402865252-25671-1-git-send-email-sbruno@freebsd.org>
Redefine functions as QEMU_AES_* to avoid conflicts with AES_* in
-lcrypto needed (at least) by -lcurl.
Take from emulators/qemu-devel/files/patch-include-qemu-aes.h
Signed-off-by: Sean Bruno <sbruno@freebsd.org>
Signed-off-by: Ed Maste <emaste@freebsd.org>
---
include/qemu/aes.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/include/qemu/aes.h b/include/qemu/aes.h
index e79c707..d310411 100644
--- a/include/qemu/aes.h
+++ b/include/qemu/aes.h
@@ -10,6 +10,15 @@ struct aes_key_st {
};
typedef struct aes_key_st AES_KEY;
+/* FreeBSD has it's own AES_set_decrypt_key in -lcrypto, avoid conflicts */
+#ifdef __FreeBSD__
+#define AES_set_encrypt_key QEMU_AES_set_encrypt_key
+#define AES_set_decrypt_key QEMU_AES_set_decrypt_key
+#define AES_encrypt QEMU_AES_encrypt
+#define AES_decrypt QEMU_AES_decrypt
+#define AES_cbc_encrypt QEMU_AES_cbc_encrypt
+#endif
+
int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
AES_KEY *key);
int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
--
1.9.3
next prev parent reply other threads:[~2014-06-15 20:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-15 20:47 [Qemu-devel] [PATCH 0/3 v2] bsd-user: Fix linking/dependency issues Sean Bruno
2014-06-15 20:47 ` [Qemu-devel] [PATCH 1/3 v2] bsd-user: Revert part of update to rules.mk Sean Bruno
2014-06-16 7:36 ` Peter Maydell
2014-06-16 9:12 ` Fam Zheng
2014-06-16 10:08 ` Paolo Bonzini
2014-06-16 13:55 ` Sean Bruno
2014-06-16 13:58 ` Sean Bruno
2014-06-16 14:15 ` Paolo Bonzini
2014-06-16 14:20 ` Sean Bruno
2014-06-16 14:57 ` Peter Maydell
2014-06-15 20:47 ` Sean Bruno [this message]
2014-06-15 20:47 ` [Qemu-devel] [PATCH 3/3 v2] bsd-user: Implement strace support for getcwd syscall Sean Bruno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1402865252-25671-3-git-send-email-sbruno@freebsd.org \
--to=sbruno@freebsd.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).