From ba414944bc487d03442a05a8d6415ce8d536ddd0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 6 Oct 2013 21:29:55 +0000 Subject: [PATCH] -fix config, fix ntohs, must be ntohl --- src/revocation/gnunet-service-revocation.c | 4 ++-- src/revocation/revocation.conf.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/revocation/gnunet-service-revocation.c b/src/revocation/gnunet-service-revocation.c index 7f85301be..6a29bb331 100644 --- a/src/revocation/gnunet-service-revocation.c +++ b/src/revocation/gnunet-service-revocation.c @@ -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, diff --git a/src/revocation/revocation.conf.in b/src/revocation/revocation.conf.in index 9c2485117..d179c1629 100644 --- a/src/revocation/revocation.conf.in +++ b/src/revocation/revocation.conf.in @@ -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 -- 2.25.1