aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-17 10:45:23 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-17 10:45:23 +0000
commit7e065c18499688141eb68513058131a49344cac1 (patch)
treee441b44c8f0db8a4f214775e4945039cc820cf2f /src/include
parentb3ad920b6e0107c3da946fe1f2f720955dbac151 (diff)
downloadgnunet-7e065c18499688141eb68513058131a49344cac1.tar.gz
gnunet-7e065c18499688141eb68513058131a49344cac1.zip
fixing #1551/#2503
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_crypto_lib.h11
-rw-r--r--src/include/gnunet_server_lib.h18
2 files changed, 29 insertions, 0 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index b73d26d1e..710ef3179 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -1085,6 +1085,17 @@ void
1085GNUNET_CRYPTO_random_disable_entropy_gathering (void); 1085GNUNET_CRYPTO_random_disable_entropy_gathering (void);
1086 1086
1087 1087
1088/**
1089 * Check if we are using weak random number generation.
1090 *
1091 * @return GNUNET_YES if weak number generation is on
1092 * (thus will return YES if 'GNUNET_CRYPTO_random_disable_entropy_gathering'
1093 * was called previously).
1094 */
1095int
1096GNUNET_CRYPTO_random_is_weak (void);
1097
1098
1088#if 0 /* keep Emacsens' auto-indent happy */ 1099#if 0 /* keep Emacsens' auto-indent happy */
1089{ 1100{
1090#endif 1101#endif
diff --git a/src/include/gnunet_server_lib.h b/src/include/gnunet_server_lib.h
index 73fe8000e..aaf47aca5 100644
--- a/src/include/gnunet_server_lib.h
+++ b/src/include/gnunet_server_lib.h
@@ -155,6 +155,24 @@ GNUNET_SERVER_create (GNUNET_CONNECTION_AccessCheck access, void *access_cls,
155 155
156 156
157/** 157/**
158 * Suspend accepting connections from the listen socket temporarily.
159 *
160 * @param server server to stop accepting connections.
161 */
162void
163GNUNET_SERVER_suspend (struct GNUNET_SERVER_Handle *server);
164
165
166/**
167 * Resume accepting connections from the listen socket.
168 *
169 * @param server server to stop accepting connections.
170 */
171void
172GNUNET_SERVER_resume (struct GNUNET_SERVER_Handle *server);
173
174
175/**
158 * Stop the listen socket and get ready to shutdown the server 176 * Stop the listen socket and get ready to shutdown the server
159 * once only 'monitor' clients are left. 177 * once only 'monitor' clients are left.
160 * 178 *