Skip to content

Commit

Permalink
Libgcrypt initialization fix
Browse files Browse the repository at this point in the history
Issue #101 report that libgcrypt print a warning about missing
initialization. Hopefully this patch will fix that.
  • Loading branch information
sm0svx committed Sep 16, 2014
1 parent ce25d27 commit 115f51b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/svxlink/trx/NetTrxMsg.h
Expand Up @@ -260,6 +260,9 @@ class MsgAuthResponse : public Msg
gcry_error_t err;
//err = gcry_control(GCRYCTL_INIT_SECMEM, 16384, 0);
err = gcry_control(GCRYCTL_DISABLE_SECMEM, 0);
if (err) goto error;
// Tell Libgcrypt that initialization has completed
err = gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0);
if (err) goto error;
gcry_md_hd_t hd;
//printf("gcry_md_open\n");
Expand Down

0 comments on commit 115f51b

Please sign in to comment.