aboutsummaryrefslogtreecommitdiff
path: root/src/revocation
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-06 21:29:55 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-06 21:29:55 +0000
commitba414944bc487d03442a05a8d6415ce8d536ddd0 (patch)
tree52d5a5fa7c85e75183028c652acaefd00139298c /src/revocation
parente5b9727cdd7cb1adb99d69cfc33dd513f6efbed1 (diff)
downloadgnunet-ba414944bc487d03442a05a8d6415ce8d536ddd0.tar.gz
gnunet-ba414944bc487d03442a05a8d6415ce8d536ddd0.zip
-fix config, fix ntohs, must be ntohl
Diffstat (limited to 'src/revocation')
-rw-r--r--src/revocation/gnunet-service-revocation.c4
-rw-r--r--src/revocation/revocation.conf.in4
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,
195 GNUNET_h2s (&hc)); 195 GNUNET_h2s (&hc));
196 qrm.header.size = htons (sizeof (struct QueryResponseMessage)); 196 qrm.header.size = htons (sizeof (struct QueryResponseMessage));
197 qrm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE); 197 qrm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE);
198 qrm.is_valid = htons ((GNUNET_YES == res) ? GNUNET_NO : GNUNET_YES); 198 qrm.is_valid = htonl ((GNUNET_YES == res) ? GNUNET_NO : GNUNET_YES);
199 GNUNET_SERVER_notification_context_add (nc, 199 GNUNET_SERVER_notification_context_add (nc,
200 client); 200 client);
201 GNUNET_SERVER_notification_context_unicast (nc, 201 GNUNET_SERVER_notification_context_unicast (nc,
@@ -328,7 +328,7 @@ handle_revoke_message (void *cls,
328 } 328 }
329 rrm.header.size = htons (sizeof (struct RevocationResponseMessage)); 329 rrm.header.size = htons (sizeof (struct RevocationResponseMessage));
330 rrm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE); 330 rrm.header.type = htons (GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE);
331 rrm.is_valid = htons ((GNUNET_OK == ret) ? GNUNET_NO : GNUNET_YES); 331 rrm.is_valid = htonl ((GNUNET_OK == ret) ? GNUNET_NO : GNUNET_YES);
332 GNUNET_SERVER_notification_context_add (nc, 332 GNUNET_SERVER_notification_context_add (nc,
333 client); 333 client);
334 GNUNET_SERVER_notification_context_unicast (nc, 334 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 @@
1[revocation] 1[revocation]
2AUTOSTART = NO 2AUTOSTART = YES
3# not yet...
4@JAVAPORT@PORT = 2112 3@JAVAPORT@PORT = 2112
5HOSTNAME = localhost 4HOSTNAME = localhost
6HOME = $SERVICEHOME 5HOME = $SERVICEHOME
@@ -16,3 +15,4 @@ UNIX_MATCH_GID = YES
16# DO NOT CHANGE THIS VALUE, doing so will break the protocol! 15# DO NOT CHANGE THIS VALUE, doing so will break the protocol!
17WORKBITS = 25 16WORKBITS = 25
18 17
18DATABASE = $SERVICEHOME/revocation.db