aboutsummaryrefslogtreecommitdiff
path: root/src/pq
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/pq
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz
gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/pq')
-rw-r--r--src/pq/test_pq.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pq/test_pq.c b/src/pq/test_pq.c
index b8ffc6403..49705103f 100644
--- a/src/pq/test_pq.c
+++ b/src/pq/test_pq.c
@@ -102,8 +102,9 @@ run_queries (PGconn *conn)
102 PGresult *result; 102 PGresult *result;
103 int ret; 103 int ret;
104 struct GNUNET_CRYPTO_RsaPrivateKey *priv; 104 struct GNUNET_CRYPTO_RsaPrivateKey *priv;
105 char msg[] = "Hello"; 105 const char msg[] = "hello";
106 void *msg2; 106 void *msg2;
107 struct GNUNET_HashCode hmsg;
107 size_t msg2_len; 108 size_t msg2_len;
108 uint16_t u16; 109 uint16_t u16;
109 uint16_t u162; 110 uint16_t u162;
@@ -114,9 +115,9 @@ run_queries (PGconn *conn)
114 115
115 priv = GNUNET_CRYPTO_rsa_private_key_create (1024); 116 priv = GNUNET_CRYPTO_rsa_private_key_create (1024);
116 pub = GNUNET_CRYPTO_rsa_private_key_get_public (priv); 117 pub = GNUNET_CRYPTO_rsa_private_key_get_public (priv);
117 sig = GNUNET_CRYPTO_rsa_sign (priv, 118 memset (&hmsg, 42, sizeof (hmsg));
118 msg, 119 sig = GNUNET_CRYPTO_rsa_sign_fdh (priv,
119 sizeof (msg)); 120 &hmsg);
120 u16 = 16; 121 u16 = 16;
121 u32 = 32; 122 u32 = 32;
122 u64 = 64; 123 u64 = 64;