Verify that GCD(m,n) != 1 when n is an RSA modulus
[oweals/gnunet.git] / src / pq / pq_query_helper.c
index d284822c2206ee4218d3646b4aa3bc37ec76406a..d80a3d99a61b77354cf7f5f168c37d59afc134aa 100644 (file)
@@ -75,6 +75,18 @@ GNUNET_PQ_query_param_fixed_size (const void *ptr,
 }
 
 
+/**
+ * Generate query parameter for a string.
+ *
+ * @param ptr pointer to the string query parameter to pass
+ */
+struct GNUNET_PQ_QueryParam
+GNUNET_PQ_query_param_string (const char *ptr)
+{
+  return GNUNET_PQ_query_param_fixed_size (ptr, strlen (ptr));
+}
+
+
 /**
  * Function called to convert input argument into SQL parameters.
  *
@@ -254,7 +266,7 @@ GNUNET_PQ_query_param_uint64 (const uint64_t *x)
  * @param scratch_length number of entries left in @a scratch
  * @return -1 on error, number of offsets used in @a scratch otherwise
  */
-static int 
+static int
 qconv_rsa_public_key (void *cls,
                      const void *data,
                      size_t data_len,