diff options
author | Philipp Hahn <hahn@univention.de> | 2012-01-30 18:44:13 +0100 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2012-02-01 16:36:13 -0700 |
commit | 08f680ee1b24081cb1f3aa099fd8c8b30d7b434f (patch) | |
tree | 8e1f1d5a720633e24cb566e24589777f12b91fa4 /tests/virnettlscontexttest.c | |
parent | 184fc07fdaa467ca5d6276b54393140b2f73ab56 (diff) | |
download | libvirt-08f680ee1b24081cb1f3aa099fd8c8b30d7b434f.tar.gz |
tests: virnettlscontexttest needs gnutls-2.6.0
virnettlscontexttest uses gnutls_x509_crt_set_subject_alt_name() and
GNUTLS_FSAN_APPEND, which - according to
<http://www.gnu.org/software/gnutls/manual/gnutls.html> - are only
available since 2.6.0.
Since libvirt still works fine with gnutls-1.0.25 from RHEL5, only
enable the test when the version of GNUTLS is at least 2.6.0.
Signed-off-by: Philipp Hahn <hahn@univention.de>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/virnettlscontexttest.c')
-rw-r--r-- | tests/virnettlscontexttest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/virnettlscontexttest.c b/tests/virnettlscontexttest.c index 51f75b4d0c..898e3abc92 100644 --- a/tests/virnettlscontexttest.c +++ b/tests/virnettlscontexttest.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Red Hat, Inc. + * Copyright (C) 2011-2012 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -36,7 +36,7 @@ #include "virsocketaddr.h" #include "gnutls_1_0_compat.h" -#if !defined WIN32 && HAVE_LIBTASN1_H && !defined GNUTLS_1_0_COMPAT +#if !defined WIN32 && HAVE_LIBTASN1_H && LIBGNUTLS_VERSION_NUMBER >= 0x020600 # include <libtasn1.h> # include "rpc/virnettlscontext.h" |