gpgme: check_version() MUST be called, but examples miss it
bernhard at intevation.de
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
So people now initialisation must be done before using the snipplet.
Managing Director - Owner: www.intevation.net (Free Software Company)
Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com.
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...
Size: 1571 bytes
Desc: not available
More information about the Gnupg-devel