[libsoup/carlosgc/client-side-certs2] fixup! ssl-test: Only run PKCS#11 tests with gnutls backend
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/carlosgc/client-side-certs2] fixup! ssl-test: Only run PKCS#11 tests with gnutls backend
- Date: Sun, 30 May 2021 17:28:14 +0000 (UTC)
commit 1ee6af4b3a62ffa39dd871a79d3f9bbe21ee0bb8
Author: Patrick Griffis <pgriffis igalia com>
Date: Sun May 30 12:28:10 2021 -0500
fixup! ssl-test: Only run PKCS#11 tests with gnutls backend
tests/ssl-test.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tests/ssl-test.c b/tests/ssl-test.c
index 268e2896..47d32e26 100644
--- a/tests/ssl-test.c
+++ b/tests/ssl-test.c
@@ -306,7 +306,7 @@ do_tls_interaction_msg_test (gconstpointer data)
SoupMessage *msg;
GBytes *body;
GTlsDatabase *tls_db;
- GTlsCertificate *certificate, *wrong_certificate, *pkcs11_certificate;
+ GTlsCertificate *certificate, *wrong_certificate;
GError *error = NULL;
SOUP_TEST_SKIP_IF_NO_TLS;
@@ -407,7 +407,7 @@ do_tls_interaction_msg_test (gconstpointer data)
g_test_message ("Running PKCS#11 tests");
/* Using PKCS#11 works, and asks for a PIN */
- pkcs11_certificate = g_tls_certificate_new_from_pkcs11_uris (
+ GTlsCertificate *pkcs11_certificate = g_tls_certificate_new_from_pkcs11_uris (
"pkcs11:model=mock;serial=1;token=Mock%20Certificate;id=%4D%6F%63%6B%20%43%65%72%74%69%66%69%63%61%74%65;object=Mock%20Certificate;type=cert",
"pkcs11:model=mock;serial=1;token=Mock%20Certificate;id=%4D%6F%63%6B%20%50%72%69%76%61%74%65%20%4B%65%79;object=Mock%20Private%20Key;type=private",
&error
@@ -458,6 +458,8 @@ do_tls_interaction_msg_test (gconstpointer data)
g_clear_error (&error);
g_bytes_unref (body);
g_object_unref (msg);
+
+ g_object_unref (pkcs11_certificate);
}
g_signal_handlers_disconnect_by_data (server, tls_db);
@@ -465,7 +467,6 @@ do_tls_interaction_msg_test (gconstpointer data)
soup_test_session_abort_unref (session);
g_object_unref (certificate);
g_object_unref (wrong_certificate);
- g_object_unref (pkcs11_certificate);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]