chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gcrypt initialization to suppress warning message. Not really
[disorder]
/
clients
/
disorder.c
diff --git
a/clients/disorder.c
b/clients/disorder.c
index 8dc6d7fda7f35baa96bc38f0c78ddbbc1a93f13f..5f725e8180ad93200abaf4920e38f12dbac6bd0a 100644
(file)
--- a/
clients/disorder.c
+++ b/
clients/disorder.c
@@
-32,6
+32,7
@@
#include <unistd.h>
#include <pcre.h>
#include <ctype.h>
#include <unistd.h>
#include <pcre.h>
#include <ctype.h>
+#include <gcrypt.h>
#include "configuration.h"
#include "syscalls.h"
#include "configuration.h"
#include "syscalls.h"
@@
-764,6
+765,11
@@
int main(int argc, char **argv) {
config->connect.n = 0;
n = optind;
optind = 1; /* for subsequent getopt calls */
config->connect.n = 0;
n = optind;
optind = 1; /* for subsequent getopt calls */
+ /* 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);
/* accumulate command args */
while(n < argc) {
if((i = TABLE_FIND(commands, name, argv[n])) < 0)
/* accumulate command args */
while(n < argc) {
if((i = TABLE_FIND(commands, name, argv[n])) < 0)