[glib-networking/wip/tingping/pkcs11-2] fixup! fixup! fixup! b2e8104fda64aea32ddae319a87f33772609718f
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/wip/tingping/pkcs11-2] fixup! fixup! fixup! b2e8104fda64aea32ddae319a87f33772609718f
- Date: Thu, 1 Aug 2019 04:36:43 +0000 (UTC)
commit 3aa58e165cfe770011cedc4c37f036bf5a80fbbd
Author: Patrick Griffis <pgriffis igalia com>
Date: Wed Jul 31 21:36:34 2019 -0700
fixup! fixup! fixup! b2e8104fda64aea32ddae319a87f33772609718f
tls/gnutls/gtlsconnection-gnutls.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index a578526..2e61f42 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -280,13 +280,14 @@ g_tls_connection_gnutls_get_session (GTlsConnectionGnutls *gnutls)
return priv->session;
}
-static int callback (void *userdata,
- int attempt,
- const char *token_url,
- const char *token_label,
- unsigned int callback_flags,
- char *pin,
- size_t pin_max)
+static int
+on_pin_request (void *userdata,
+ int attempt,
+ const char *token_url,
+ const char *token_label,
+ unsigned int callback_flags,
+ char *pin,
+ size_t pin_max)
{
GTlsConnection *connection = G_TLS_CONNECTION (userdata);
GTlsInteraction *interaction = g_tls_connection_get_interaction (connection);
@@ -359,7 +360,7 @@ g_tls_connection_gnutls_get_certificate (GTlsConnectionGnutls *gnutls,
/* Send along a pre-initialized privkey so we can handle the callback here */
gnutls_privkey_t privkey;
gnutls_privkey_init (&privkey);
- gnutls_privkey_set_pin_function (privkey, callback, gnutls); // FXIME: Ensure gnutls is a valid object
+ gnutls_privkey_set_pin_function (privkey, on_pin_request, gnutls); // FXIME: Ensure gnutls is a valid
object
g_tls_certificate_gnutls_copy (G_TLS_CERTIFICATE_GNUTLS (cert),
priv->interaction_id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]