[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 2/2] vnc-tls: Fix compilation with newer versions of GNU-TLS



From: Andre Przywara <andre.przywara@xxxxxxx>

In my installation of GNU-TLS (v3.0.23) the type
gnutls_anon_server_credentials is marked deprecated, so -Werror
breaks compilation.
Simply replacing it with the newer ..._t version fixed the compilation
on my machine (Slackware 14.0). I cannot tell how far back this "new"
type goes, at least the header file in RHEL 5.0 (v1.4.1) seems to have
it already. If someone finds a broken distribution, tell me and I
insert some compat code.

Upstream commit 7d2a929feba319c18603e324b1750830d6c8b7a1

Signed-off-by: Andre Przywara <andre.przywara@xxxxxxx>
Message-id: 1350551818-14717-1-git-send-email-andre.przywara@xxxxxxx
Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx>

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---
 vnc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vnc.c b/vnc.c
index 96f2fba..8ed8a26 100644
--- a/vnc.c
+++ b/vnc.c
@@ -1909,9 +1909,9 @@ static int vnc_tls_initialize(void)
     return 1;
 }
 
-static gnutls_anon_server_credentials vnc_tls_initialize_anon_cred(void)
+static gnutls_anon_server_credentials_t vnc_tls_initialize_anon_cred(void)
 {
-    gnutls_anon_server_credentials anon_cred;
+    gnutls_anon_server_credentials_t anon_cred;
     int ret;
 
     if ((ret = gnutls_anon_allocate_server_credentials(&anon_cred)) < 0) {
@@ -2228,7 +2228,7 @@ static int vnc_start_tls(struct VncState *vs) {
            }
 
        } else {
-           gnutls_anon_server_credentials anon_cred = 
vnc_tls_initialize_anon_cred();
+           gnutls_anon_server_credentials_t anon_cred = 
vnc_tls_initialize_anon_cred();
            if (!anon_cred) {
                gnutls_deinit(vs->tls_session);
                vs->tls_session = NULL;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.