[rs-commit] r62 - in /redwax-signtext/trunk/src/linux: crypto.c crypto.h
rs-commit at redwax.eu
rs-commit at redwax.eu
Fri Sep 16 23:34:25 CEST 2022
Author: minfrin at redwax.eu
Date: Fri Sep 16 23:34:24 2022
New Revision: 62
Log:
Make sure we correctly return false on idle callbacks for
one shot operation.
Modified:
redwax-signtext/trunk/src/linux/crypto.c
redwax-signtext/trunk/src/linux/crypto.h
Modified: redwax-signtext/trunk/src/linux/crypto.c
==============================================================================
--- redwax-signtext/trunk/src/linux/crypto.c (original)
+++ redwax-signtext/trunk/src/linux/crypto.c Fri Sep 16 23:34:24 2022
@@ -148,7 +148,7 @@
gpointer user_data
);
-static void
+static gboolean
crypto_slot_do (gpointer user_data);
static void
@@ -218,7 +218,7 @@
signtext_token_free(signtext_token);
}
-static void
+static gboolean
crypto_slot_do (gpointer user_data)
{
SignTextToken *signtext_token = user_data;
@@ -250,6 +250,7 @@
gck_enumerator_next_async(cenum, -1, signtext_token->signtext->cancellable, crypto_slot_done, signtext_token);
+ return FALSE;
}
static gboolean
@@ -584,7 +585,7 @@
*
* Are we good to leave?
*/
-void
+gboolean
crypto_sign_done (SignTextInstance *instance)
{
GError *gerror = NULL;
@@ -598,6 +599,7 @@
g_error_free (gerror);
}
+ return FALSE;
}
static void
@@ -644,7 +646,7 @@
*
* When done, jump to the completion step to send the message.
*/
-static void
+static gboolean
crypto_sign_do (gpointer user_data)
{
SignTextInstance *instance = user_data;
@@ -802,6 +804,7 @@
g_error_free (gerror);
}
+ return FALSE;
}
/*
Modified: redwax-signtext/trunk/src/linux/crypto.h
==============================================================================
--- redwax-signtext/trunk/src/linux/crypto.h (original)
+++ redwax-signtext/trunk/src/linux/crypto.h Fri Sep 16 23:34:24 2022
@@ -37,7 +37,7 @@
void
crypto_sign_continue(SignTextInstance *instance);
-void
+gboolean
crypto_sign_done(SignTextInstance *instance);
#endif
More information about the rs-commit
mailing list