-fix config, fix ntohs, must be ntohl
authorChristian Grothoff <christian@grothoff.org>
Sun, 6 Oct 2013 21:29:55 +0000 (21:29 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 6 Oct 2013 21:29:55 +0000 (21:29 +0000)
src/revocation/gnunet-service-revocation.c
src/revocation/revocation.conf.in

index 7f85301be6aed4f8761659993a832d6c737663e2..6a29bb331993b33f28e1b0e703802e802b1962f2 100644 (file)
@@ -195,7 +195,7 @@ handle_query_message (void *cls,
               GNUNET_h2s (&hc));
   qrm.header.size = htons (sizeof (struct QueryResponseMessage));
   qrm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE);
-  qrm.is_valid = htons ((GNUNET_YES == res) ? GNUNET_NO : GNUNET_YES);
+  qrm.is_valid = htonl ((GNUNET_YES == res) ? GNUNET_NO : GNUNET_YES);
   GNUNET_SERVER_notification_context_add (nc,
                                           client);
   GNUNET_SERVER_notification_context_unicast (nc,
@@ -328,7 +328,7 @@ handle_revoke_message (void *cls,
   }
   rrm.header.size = htons (sizeof (struct RevocationResponseMessage));
   rrm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE);
-  rrm.is_valid = htons ((GNUNET_OK == ret) ? GNUNET_NO : GNUNET_YES);
+  rrm.is_valid = htonl ((GNUNET_OK == ret) ? GNUNET_NO : GNUNET_YES);
   GNUNET_SERVER_notification_context_add (nc,
                                           client);
   GNUNET_SERVER_notification_context_unicast (nc,
index 9c248511741fad5262a584f23cd73a6dc5beec27..d179c162988be8cffcb1763214b2de0cecea0dd4 100644 (file)
@@ -1,6 +1,5 @@
 [revocation]
-AUTOSTART = NO 
-# not yet...
+AUTOSTART = YES
 @JAVAPORT@PORT = 2112
 HOSTNAME = localhost
 HOME = $SERVICEHOME
@@ -16,3 +15,4 @@ UNIX_MATCH_GID = YES
 # DO NOT CHANGE THIS VALUE, doing so will break the protocol!
 WORKBITS = 25
 
+DATABASE = $SERVICEHOME/revocation.db