diff options
Diffstat (limited to 'src/my/my_query_helper.c')
-rw-r--r-- | src/my/my_query_helper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/my/my_query_helper.c b/src/my/my_query_helper.c index 526e57b8b..97ea04fd1 100644 --- a/src/my/my_query_helper.c +++ b/src/my/my_query_helper.c | |||
@@ -280,14 +280,14 @@ my_conv_rsa_public_key (void *cls, | |||
280 | MYSQL_BIND *qbind) | 280 | MYSQL_BIND *qbind) |
281 | { | 281 | { |
282 | const struct GNUNET_CRYPTO_RsaPublicKey *rsa = qp->data; | 282 | const struct GNUNET_CRYPTO_RsaPublicKey *rsa = qp->data; |
283 | char *buf; | 283 | void *buf; |
284 | size_t buf_size; | 284 | size_t buf_size; |
285 | 285 | ||
286 | (void) cls; | 286 | (void) cls; |
287 | GNUNET_assert (1 == qp->num_params); | 287 | GNUNET_assert (1 == qp->num_params); |
288 | buf_size = GNUNET_CRYPTO_rsa_public_key_encode (rsa, | 288 | buf_size = GNUNET_CRYPTO_rsa_public_key_encode (rsa, |
289 | &buf); | 289 | &buf); |
290 | qbind->buffer = (void *) buf; | 290 | qbind->buffer = buf; |
291 | qbind->buffer_length = buf_size; | 291 | qbind->buffer_length = buf_size; |
292 | qbind->buffer_type = MYSQL_TYPE_BLOB; | 292 | qbind->buffer_type = MYSQL_TYPE_BLOB; |
293 | return 1; | 293 | return 1; |
@@ -332,14 +332,14 @@ my_conv_rsa_signature (void *cls, | |||
332 | MYSQL_BIND *qbind) | 332 | MYSQL_BIND *qbind) |
333 | { | 333 | { |
334 | const struct GNUNET_CRYPTO_RsaSignature *sig = qp->data; | 334 | const struct GNUNET_CRYPTO_RsaSignature *sig = qp->data; |
335 | char *buf; | 335 | void *buf; |
336 | size_t buf_size; | 336 | size_t buf_size; |
337 | 337 | ||
338 | (void) cls; | 338 | (void) cls; |
339 | GNUNET_assert (1 == qp->num_params); | 339 | GNUNET_assert (1 == qp->num_params); |
340 | buf_size = GNUNET_CRYPTO_rsa_signature_encode (sig, | 340 | buf_size = GNUNET_CRYPTO_rsa_signature_encode (sig, |
341 | &buf); | 341 | &buf); |
342 | qbind->buffer = (void *) buf; | 342 | qbind->buffer = buf; |
343 | qbind->buffer_length = buf_size; | 343 | qbind->buffer_length = buf_size; |
344 | qbind->buffer_type = MYSQL_TYPE_BLOB; | 344 | qbind->buffer_type = MYSQL_TYPE_BLOB; |
345 | return 1; | 345 | return 1; |