* FIXME.
*
*/
-
+
/**
* Variable-size result expected
*
GNUNET_MY_result_spec_uint64 (uint64_t *u64);
int
-GNUNET_MY_extract_result (MYSQL_BIND * result,
+GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh,
struct GNUNET_MY_QueryParam *qp,
struct GNUNET_MY_ResultSpec *specs,
int row);
#GNUNET_SYSERR if a result was invalid
*/
int
-GNUNET_MY_extract_result (MYSQL_BIND * result,
+GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh,
struct GNUNET_MY_QueryParam *qp,
struct GNUNET_MY_ResultSpec *rs,
int row)
{
+ MYSQL_BIND * result;
unsigned int i;
int had_null = GNUNET_NO;
int ret;
+ MYSQL_STMT *stmt;
+ stmt = GNUNET_MYSQL_statement_get_stmt (NULL /* FIXME */, sh);
+ // result = mysql_get_result (stmt);
+ result = NULL;
for (i = 0 ; NULL != rs[i].conv ; i++)
{
struct GNUNET_MY_ResultSpec *spec;
struct GNUNET_CRYPTO_RsaPublicKey *public_key;
gcry_sexp_t data;
gcry_sexp_t result;
+ int rc;
data = mpi_to_sexp (value);
if (0 !=
- gcry_pk_sign (&result,
- data,
- key->sexp))
+ (rc = gcry_pk_sign (&result,
+ data,
+ key->sexp)))
{
+ LOG (GNUNET_ERROR_TYPE_WARNING,
+ _("RSA signing failed at %s:%d: %s\n"),
+ __FILE__,
+ __LINE__,
+ gcry_strerror (rc));
GNUNET_break (0);
return NULL;
}
sig = rsa_sign_mpi (key, v);
gcry_mpi_release (v);
- return sig;
+ return sig;
}
sig = rsa_sign_mpi (key, v);
gcry_mpi_release (v);
- return sig;
+ return sig;
}