aboutsummaryrefslogtreecommitdiff
path: root/src/escrow/plugin_escrow_plaintext.c
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-09-02 21:36:05 +0200
committerjospaeth <spaethj@in.tum.de>2020-09-02 21:36:05 +0200
commit3fd3f3fbc9c2f83b3505d4aafe026817944e73c1 (patch)
treea91a4b93714cd7361b8ec70488809dfd879a1661 /src/escrow/plugin_escrow_plaintext.c
parente431696955001e45836ab5d2eeda6e49120049e1 (diff)
downloadgnunet-3fd3f3fbc9c2f83b3505d4aafe026817944e73c1.tar.gz
gnunet-3fd3f3fbc9c2f83b3505d4aafe026817944e73c1.zip
minor improvements
add static/const
Diffstat (limited to 'src/escrow/plugin_escrow_plaintext.c')
-rw-r--r--src/escrow/plugin_escrow_plaintext.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/escrow/plugin_escrow_plaintext.c b/src/escrow/plugin_escrow_plaintext.c
index 9eb1fb120..623504a6b 100644
--- a/src/escrow/plugin_escrow_plaintext.c
+++ b/src/escrow/plugin_escrow_plaintext.c
@@ -86,14 +86,14 @@ static struct GNUNET_IDENTITY_Handle *identity_handle;
86/** 86/**
87 * Handle for the plugin instance 87 * Handle for the plugin instance
88 */ 88 */
89struct ESCROW_PluginHandle ph; 89static struct ESCROW_PluginHandle ph;
90 90
91 91
92/** 92/**
93 * Clean up a plugin operation, i.e. remove it from the list and 93 * Clean up a plugin operation, i.e. remove it from the list and
94 * free the respective memory 94 * free the respective memory
95 */ 95 */
96void 96static void
97cleanup_plugin_operation (struct ESCROW_PluginOperationWrapper *plugin_op_wrap) 97cleanup_plugin_operation (struct ESCROW_PluginOperationWrapper *plugin_op_wrap)
98{ 98{
99 struct ESCROW_PlaintextPluginOperation *p_op; 99 struct ESCROW_PlaintextPluginOperation *p_op;
@@ -114,7 +114,7 @@ cleanup_plugin_operation (struct ESCROW_PluginOperationWrapper *plugin_op_wrap)
114} 114}
115 115
116 116
117void 117static void
118start_cont (void *cls) 118start_cont (void *cls)
119{ 119{
120 struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls; 120 struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls;
@@ -196,7 +196,7 @@ start_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h,
196} 196}
197 197
198 198
199void 199static void
200verify_cont (void *cls) 200verify_cont (void *cls)
201{ 201{
202 struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls; 202 struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls;
@@ -223,7 +223,7 @@ verify_cont (void *cls)
223struct ESCROW_PluginOperationWrapper * 223struct ESCROW_PluginOperationWrapper *
224verify_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, 224verify_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h,
225 struct GNUNET_IDENTITY_Ego *ego, 225 struct GNUNET_IDENTITY_Ego *ego,
226 struct GNUNET_ESCROW_Anchor *anchor, 226 const struct GNUNET_ESCROW_Anchor *anchor,
227 ESCROW_Plugin_Continuation cb, 227 ESCROW_Plugin_Continuation cb,
228 uint32_t op_id) 228 uint32_t op_id)
229{ 229{
@@ -277,7 +277,7 @@ verify_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h,
277} 277}
278 278
279 279
280void 280static void
281ego_created (const struct GNUNET_IDENTITY_Ego *ego) 281ego_created (const struct GNUNET_IDENTITY_Ego *ego)
282{ 282{
283 struct ESCROW_PluginOperationWrapper *curr; 283 struct ESCROW_PluginOperationWrapper *curr;
@@ -348,7 +348,7 @@ create_finished (void *cls,
348} 348}
349 349
350 350
351void 351static void
352handle_restore_error (void *cls) 352handle_restore_error (void *cls)
353{ 353{
354 struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls; 354 struct ESCROW_PluginOperationWrapper *plugin_op_wrap = cls;
@@ -373,7 +373,7 @@ handle_restore_error (void *cls)
373 */ 373 */
374struct ESCROW_PluginOperationWrapper * 374struct ESCROW_PluginOperationWrapper *
375restore_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h, 375restore_plaintext_key_escrow (struct GNUNET_ESCROW_Handle *h,
376 struct GNUNET_ESCROW_Anchor *anchor, 376 const struct GNUNET_ESCROW_Anchor *anchor,
377 ESCROW_Plugin_Continuation cb, 377 ESCROW_Plugin_Continuation cb,
378 uint32_t op_id) 378 uint32_t op_id)
379{ 379{
@@ -478,7 +478,7 @@ cancel_plaintext_operation (struct ESCROW_PluginOperationWrapper *plugin_op_wrap
478/** 478/**
479 * IdentityInitContinuation for the plaintext plugin 479 * IdentityInitContinuation for the plaintext plugin
480 */ 480 */
481void 481static void
482plaintext_cont_init () 482plaintext_cont_init ()
483{ 483{
484 return; 484 return;