Newbie Question about initialization

Werner Koch wk at
Fri Nov 23 20:54:08 CET 2018

On Fri, 23 Nov 2018 15:18, gnupg-users at said:

> gcry_version_check(1.8.4)

gcry_check_version requires a string with the version number or NULL.

--8<---------------cut here---------------start------------->8---
  const char *s;
  if ((s=gcry_version_check ("1.8.4")))
     printf ("Version of Libgcrypt okay; got version=%s\n", s);
--8<---------------cut here---------------end--------------->8---

You can use NULL if you only want to initialize the library or to get
the version number.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <>

More information about the Gnupg-users mailing list