-more rsa refactoring
[oweals/gnunet.git] / src / gns / gns_api.c
index 9ef98b8055c841efa2965424056795818c52963d..fef7b866df0642b782ef37e5257033a2f4128e79 100644 (file)
@@ -88,19 +88,26 @@ struct GNUNET_GNS_ShortenRequest
    */
   struct GNUNET_GNS_ShortenRequest *prev;
 
-  /* handle to gns */
+  /**
+   * handle to gns
+   */
   struct GNUNET_GNS_Handle *gns_handle;
   
-  /* processor to call on shorten result */
+  /**
+   *  processor to call on shorten result
+   */
   GNUNET_GNS_ShortenResultProcessor shorten_proc;
   
-  /* processor closure */
+  /**
+   * processor closure
+   */
   void *proc_cls;
 
-  /* request id */
+  /**
+   * request id
+   */
   uint64_t r_id;
   
-  
 };
 
 
@@ -119,16 +126,24 @@ struct GNUNET_GNS_GetAuthRequest
    */
   struct GNUNET_GNS_GetAuthRequest *prev;
 
-  /* handle to gns */
+  /**
+   * handle to gns
+   */
   struct GNUNET_GNS_Handle *gns_handle;
   
-  /* processor to call on authority lookup result */
+  /**
+   * processor to call on authority lookup result
+   */
   GNUNET_GNS_GetAuthResultProcessor auth_proc;
   
-  /* processor closure */
+  /**
+   * processor closure
+   */
   void *proc_cls;
   
-  /* request id */
+  /**
+   * request id
+   */
   uint32_t r_id;
   
 };
@@ -342,7 +357,10 @@ force_reconnect (struct GNUNET_GNS_Handle *h)
 /**
  * Transmit the next pending message, called by notify_transmit_ready
  *
- * @param fixme
+ * @param cls the closure
+ * @param size size of pending data
+ * @param buf buffer with pending data
+ * @return size data transmitted
  */
 static size_t
 transmit_pending (void *cls, size_t size, void *buf);
@@ -361,7 +379,7 @@ process_message (void *cls, const struct GNUNET_MessageHeader *msg);
 /**
  * Try to send messages from list of messages to send
  *
- * @param fixme
+ * @param handle the GNS handle
  */
 static void
 process_pending_messages (struct GNUNET_GNS_Handle *handle)
@@ -394,7 +412,10 @@ process_pending_messages (struct GNUNET_GNS_Handle *handle)
 /**
  * Transmit the next pending message, called by notify_transmit_ready
  *
- * @param fixme
+ * @param cls the closure
+ * @param size size of pending data
+ * @param buf buffer with pending data
+ * @return size data transmitted
  */
 static size_t
 transmit_pending (void *cls, size_t size, void *buf)
@@ -831,6 +852,7 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle,
   if (msize > UINT16_MAX)
   {
     GNUNET_break (0);
+    GNUNET_free (pkey_enc);
     return NULL;
   }
   lr = GNUNET_malloc (sizeof (struct GNUNET_GNS_LookupRequest) +
@@ -892,7 +914,7 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle,
  * @param proc_cls closure for processor
  * @return handle to the lookup request
  */
-struct GNUNET_GNS_LookupRequest*
+struct GNUNET_GNS_LookupRequest *
 GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle,
                    const char *name,
                    enum GNUNET_GNS_RecordType type,