X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fserver_util.h;h=4feb4ee545bd8f6d977b9cb2ce50a9519f20a1b3;hb=a4bca275d651ca750224149945bc8fca5c80de77;hp=ca54b1b8614851b5316d44445838c8a52de0f1c8;hpb=f50fab3886a56151079728daa678fed3b882b433;p=silc.git diff --git a/apps/silcd/server_util.h b/apps/silcd/server_util.h index ca54b1b8..4feb4ee5 100644 --- a/apps/silcd/server_util.h +++ b/apps/silcd/server_util.h @@ -101,4 +101,14 @@ SilcPublicKey silc_server_find_public_key(SilcServer server, SilcPublicKey silc_server_get_public_key(SilcServer server, SilcHashTable local_public_keys); +/* Check whether the connection `sock' is allowed to connect to us. This + checks for example whether there is too much connections for this host, + and required version for the host etc. */ +bool silc_server_connection_allowed(SilcServer server, + SilcSocketConnection sock, + SilcSocketType type, + SilcServerConfigConnParams *global, + SilcServerConfigConnParams *params, + SilcSKE ske); + #endif /* SERVER_UTIL_H */