X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/67895023d60fc492720d2f575045ed0173948947..1c95530676f55d612383883ff383e24ecc7dc17d:/server/speaker.c diff --git a/server/speaker.c b/server/speaker.c index 9b16cc8..9cef6a4 100644 --- a/server/speaker.c +++ b/server/speaker.c @@ -79,6 +79,8 @@ #include #include #include +#include +#include #include "configuration.h" #include "syscalls.h" @@ -651,6 +653,11 @@ int main(int argc, char **argv) { info("set RLIM_NOFILE to %lu", (unsigned long)rl->rlim_cur); } else info("RLIM_NOFILE is %lu", (unsigned long)rl->rlim_cur); + /* gcrypt initialization */ + if(!gcry_check_version(NULL)) + disorder_fatal(0, "gcry_check_version failed"); + gcry_control(GCRYCTL_INIT_SECMEM, 0); + gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); /* create a pipe between the backend callback and the poll() loop */ xpipe(sigpipe); nonblock(sigpipe[0]);