diff options
author | Werner Koch <[email protected]> | 2013-02-12 09:42:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2013-02-12 09:42:54 +0000 |
commit | 4f381554411ef019d79492f1751543f145604bcf (patch) | |
tree | 4642e7c63f4c7b196f426b46a1ac3e7c1abc1450 /src/gpgme.c | |
parent | gpgme_tool: Support GPG's new pinentry-mode. (diff) | |
download | gpgme-4f381554411ef019d79492f1751543f145604bcf.tar.gz gpgme-4f381554411ef019d79492f1751543f145604bcf.zip |
Add public function gpgme_get_pinentry_mode.
* src/gpgme.c (gpgme_get_pinentry_mode): New.
Diffstat (limited to 'src/gpgme.c')
-rw-r--r-- | src/gpgme.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gpgme.c b/src/gpgme.c index 76c13b16..281ba9cf 100644 --- a/src/gpgme.c +++ b/src/gpgme.c @@ -539,6 +539,16 @@ gpgme_set_pinentry_mode (gpgme_ctx_t ctx, gpgme_keylist_mode_t mode) } +/* Get the pinentry mode of CTX. */ +gpgme_pinentry_mode_t +gpgme_get_pinentry_mode (gpgme_ctx_t ctx) +{ + TRACE1 (DEBUG_CTX, "gpgme_get_pinentry_mode", ctx, + "ctx->pinentry_mode=%u", (unsigned int)ctx->pinentry_mode); + return ctx->pinentry_mode; +} + + /* This function sets a callback function to be used to pass a passphrase to gpg. */ void |