[glib-networking/wip/tingping/pkcs11] build: Depend on GLib 2.67
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/tingping/pkcs11] build: Depend on GLib 2.67
- Date: Mon, 30 Nov 2020 18:10:23 +0000 (UTC)
commit d489fbdf61a4f8309b8c2fd9679805c88031ccb1
Author: Patrick Griffis <tingping tingping se>
Date: Mon Nov 30 12:10:13 2020 -0600
build: Depend on GLib 2.67
meson.build | 2 +-
tls/gnutls/gtlscertificate-gnutls.c | 6 ------
tls/tests/certificate.c | 4 +---
tls/tests/connection.c | 4 +---
4 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/meson.build b/meson.build
index 6a3bb3e..34e86f5 100644
--- a/meson.build
+++ b/meson.build
@@ -48,7 +48,7 @@ if host_system.contains('linux')
endif
# *** Check GLib GIO ***
-glib_dep = dependency('glib-2.0', version: '>= 2.65.1',
+glib_dep = dependency('glib-2.0', version: '>= 2.67.0',
fallback: ['glib', 'libglib_dep'])
gio_dep = dependency('gio-2.0',
fallback: ['glib', 'libgio_dep'])
diff --git a/tls/gnutls/gtlscertificate-gnutls.c b/tls/gnutls/gtlscertificate-gnutls.c
index 66f2a89..9d81cce 100644
--- a/tls/gnutls/gtlscertificate-gnutls.c
+++ b/tls/gnutls/gtlscertificate-gnutls.c
@@ -149,7 +149,6 @@ g_tls_certificate_gnutls_get_property (GObject *object,
g_value_set_object (value, gnutls->issuer);
break;
-#if GLIB_CHECK_VERSION (2, 67, 0)
case PROP_PKCS11_URI:
g_value_set_string (value, gnutls->pkcs11_uri);
break;
@@ -157,7 +156,6 @@ g_tls_certificate_gnutls_get_property (GObject *object,
case PROP_PRIVATE_KEY_PKCS11_URI:
g_value_set_string (value, gnutls->private_key_pkcs11_uri);
break;
-#endif
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -269,7 +267,6 @@ g_tls_certificate_gnutls_set_property (GObject *object,
gnutls->issuer = g_value_dup_object (value);
break;
-#if GLIB_CHECK_VERSION (2, 67, 0)
case PROP_PKCS11_URI:
string = g_value_get_string (value);
if (!string)
@@ -302,7 +299,6 @@ g_tls_certificate_gnutls_set_property (GObject *object,
gnutls->private_key_pkcs11_uri = g_strdup (string);
break;
-#endif
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
@@ -413,10 +409,8 @@ g_tls_certificate_gnutls_class_init (GTlsCertificateGnutlsClass *klass)
g_object_class_override_property (gobject_class, PROP_PRIVATE_KEY, "private-key");
g_object_class_override_property (gobject_class, PROP_PRIVATE_KEY_PEM, "private-key-pem");
g_object_class_override_property (gobject_class, PROP_ISSUER, "issuer");
-#if GLIB_CHECK_VERSION (2, 67, 0)
g_object_class_override_property (gobject_class, PROP_PKCS11_URI, "pkcs11-uri");
g_object_class_override_property (gobject_class, PROP_PRIVATE_KEY_PKCS11_URI, "private-key-pkcs11-uri");
-#endif
}
static void
diff --git a/tls/tests/certificate.c b/tls/tests/certificate.c
index d0afc31..921f29e 100644
--- a/tls/tests/certificate.c
+++ b/tls/tests/certificate.c
@@ -252,9 +252,7 @@ static void
test_create_certificate_pkcs11 (TestCertificate *test,
gconstpointer data)
{
-#if !GLIB_CHECK_VERSION (2, 67, 0)
- g_test_skip ("glib-networking built against too old GLib");
-#elif !defined (BACKEND_IS_GNUTLS)
+#if !defined (BACKEND_IS_GNUTLS)
g_test_skip ("This backend does not support PKCS #11");
#else
GTlsCertificate *cert;
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 097d9b4..7692efd 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -1071,9 +1071,7 @@ static void
test_client_auth_pkcs11_connection (TestConnection *test,
gconstpointer data)
{
-#if !GLIB_CHECK_VERSION (2, 67, 0)
- g_test_skip ("glib-networking built against too old GLib");
-#elif !defined (BACKEND_IS_GNUTLS)
+#if !defined (BACKEND_IS_GNUTLS)
g_test_skip ("This backend does not support PKCS #11");
#else
GIOStream *connection;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]