Skip to content

Commit

Permalink
move x509 file name defines to qemu-x509.h
Browse files Browse the repository at this point in the history
Want share them with vnc and spice.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
  • Loading branch information
kraxel authored and Anthony Liguori committed Mar 8, 2010
1 parent cf602c7 commit de7890d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 9 additions & 0 deletions qemu-x509.h
Original file line number Diff line number Diff line change
@@ -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 */
7 changes: 1 addition & 6 deletions vnc-tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* THE SOFTWARE.
*/

#include "qemu-x509.h"
#include "vnc.h"
#include "qemu_socket.h"

Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit de7890d

Please sign in to comment.