Make gpgme_new return a proper error if no engines are installed.
authorWerner Koch <wk@gnupg.org>
Tue, 7 Jan 2014 12:32:08 +0000 (13:32 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 7 Jan 2014 12:32:08 +0000 (13:32 +0100)
commit121efcc5618374a1b4450b1d6a18bb3c35edb1fd
tree9d11e5aa35195cd3836bc5df7016917f2877075a
parentd63058b852b83515e7715103c04a684ecf59838a
Make gpgme_new return a proper error if no engines are installed.

* src/engine.c (gpgme_get_engine_info): Improve error handling.
(_gpgme_engine_info_copy): Ditto.
* src/gpgme.c (gpgme_new): Return error GPG_ERR_NO_ENGINE.
src/engine.c
src/gpgme.c