qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH] move x509 file name defines to qemu-x509.h
Date: Thu, 25 Feb 2010 09:41:36 +0100	[thread overview]
Message-ID: <1267087296-15667-1-git-send-email-kraxel@redhat.com> (raw)

Want share them with vnc and spice.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 qemu-x509.h |    9 +++++++++
 vnc-tls.c   |    7 +------
 2 files changed, 10 insertions(+), 6 deletions(-)
 create mode 100644 qemu-x509.h

diff --git a/qemu-x509.h b/qemu-x509.h
new file mode 100644
index 0000000..095aec1
--- /dev/null
+++ b/qemu-x509.h
@@ -0,0 +1,9 @@
+#ifndef QEMU_X509_H
+#define QEMU_X509_H
+
+#define X509_CA_CERT_FILE "ca-cert.pem"
+#define X509_CA_CRL_FILE "ca-crl.pem"
+#define X509_SERVER_KEY_FILE "server-key.pem"
+#define X509_SERVER_CERT_FILE "server-cert.pem"
+
+#endif /* QEMU_X509_H */
diff --git a/vnc-tls.c b/vnc-tls.c
index e0a27ad..dec626c 100644
--- a/vnc-tls.c
+++ b/vnc-tls.c
@@ -24,6 +24,7 @@
  * THE SOFTWARE.
  */
 
+#include "qemu-x509.h"
 #include "vnc.h"
 #include "qemu_socket.h"
 
@@ -419,12 +420,6 @@ static int vnc_set_x509_credential(VncDisplay *vd,
 }
 
 
-#define X509_CA_CERT_FILE "ca-cert.pem"
-#define X509_CA_CRL_FILE "ca-crl.pem"
-#define X509_SERVER_KEY_FILE "server-key.pem"
-#define X509_SERVER_CERT_FILE "server-cert.pem"
-
-
 int vnc_tls_set_x509_creds_dir(VncDisplay *vd,
                                const char *certdir)
 {
-- 
1.6.6

             reply	other threads:[~2010-02-25  8:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-25  8:41 Gerd Hoffmann [this message]
2010-02-25 10:51 ` [Qemu-devel] Re: [PATCH] move x509 file name defines to qemu-x509.h Juan Quintela
2010-03-09 14:24 ` [Qemu-devel] " Anthony Liguori

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=1267087296-15667-1-git-send-email-kraxel@redhat.com \
    --to=kraxel@redhat.com \
    --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).