gpgme: check_version() MUST be called, but examples miss it

Bernhard Reiter bernhard at
Tue Mar 4 22:54:00 CET 2008
explains for check_version()_:
          In either case, the function initializes some
          sub-systems, and for this reason alone it must be invoked early in
          your program, before you make use of the other functions in

But the remaining examples codes in the documentation do not contain a hint
towards it. It is a must to add it in the @node I/O Callback Example .

I strongly recommend to add it to shorter examples as well as some 
(experienced) programmers will look at the examples first and might miss
the requirement to use check_version().
It could be done using a pseudo-function like
     [init gpgme]
So people now initialisation must be done before using the snipplet.


Managing Director - Owner:       (Free Software Company)
Germany Coordinator: Coordinator:
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1571 bytes
Desc: not available
URL: </pipermail/attachments/20080304/12f70c04/attachment.bin>

More information about the Gnupg-devel mailing list