gpgme_new creates a new
and returns a handle for it in ctx.
The function returns the error code
GPG_ERR_NO_ERROR if the
context was successfully created,
ctx is not a valid pointer, and
GPG_ERR_ENOMEM if not
enough memory is available. Also, it returns
gpgme_check_version was not
called to initialize GPGME, and
GPG_ERR_SELFTEST_FAILED if a
selftest failed. Currently, the only selftest is for Windows MingW32
targets to see if
-mms-bitfields was used (as required).