Home GnuPG
Diffusion GPGME 573064742145

doc,tests: Require use of ctx_flag before use of session_key.
573064742145Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

doc,tests: Require use of ctx_flag before use of session_key.

* doc/gpgme.texi: Document requirements of verifying that it is OK to
use session_key.
* tests/run-decrypt.c: Ensure that we fail if we're unable to access
the session key, so that we do not violate the guidance above.

Changed the description

-@code{gpgme_set_ctx_flag (ctx, "export-session-key")} returns
-@code{GPG_ERR_NO_ERROR} or @code{gpgme_get_ctx_flag (ctx,
-"export-session-key")} returns @code{"1"}.
+@code{gpgme_set_ctx_flag (ctx, "export-session-key")} returns success
+or @code{gpgme_get_ctx_flag (ctx, "export-session-key")} returns true
+(non-empty string).

to get gpgme_get_ctx_flag for boolean values in sync with its own
description.

Note that I don't agree with the above suggestion but it does not
really harm to have it in the man page.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
dkgAuthored on Nov 16 2016, 6:10 AM
wernerCommitted on Nov 16 2016, 10:15 AM
Parents
rMb2c07bd47bd6: qt, cpp: Add cmake config files for w32
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rM573064742145: doc,tests: Require use of ctx_flag before use of session_key. (authored by Daniel Kahn Gillmor <dkg@fifthhorseman.net>).Nov 16 2016, 10:15 AM