Add public function gpgme_get_pinentry_mode.
* src/gpgme.c (gpgme_get_pinentry_mode): New.
This commit is contained in:
parent
02a2cf0ccb
commit
4f38155441
1
NEWS
1
NEWS
@ -6,6 +6,7 @@ Noteworthy changes in version 1.3.3 (unreleased)
|
||||
gpgme_io_writen NEW.
|
||||
gpgme_set_global_flag NEW.
|
||||
gpgme_set_pinentry_mode NEW.
|
||||
gpgme_get_pinentry_mode NEW.
|
||||
gpgme_pinentry_mode_t NEW.
|
||||
GPGME_PINENTRY_MODE_DEFAULT NEW.
|
||||
GPGME_PINENTRY_MODE_ASK NEW.
|
||||
|
10
src/gpgme.c
10
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
|
||||
|
@ -207,6 +207,7 @@ EXPORTS
|
||||
gpgme_io_writen @157
|
||||
|
||||
gpgme_set_pinentry_mode @158
|
||||
gpgme_get_pinentry_mode @159
|
||||
|
||||
; END
|
||||
|
||||
|
@ -875,6 +875,9 @@ gpgme_keylist_mode_t gpgme_get_keylist_mode (gpgme_ctx_t ctx);
|
||||
gpgme_error_t gpgme_set_pinentry_mode (gpgme_ctx_t ctx,
|
||||
gpgme_pinentry_mode_t mode);
|
||||
|
||||
/* Get the pinentry mode of CTX. */
|
||||
gpgme_pinentry_mode_t gpgme_get_pinentry_mode (gpgme_ctx_t ctx);
|
||||
|
||||
/* Set the passphrase callback function in CTX to CB. HOOK_VALUE is
|
||||
passed as first argument to the passphrase callback function. */
|
||||
void gpgme_set_passphrase_cb (gpgme_ctx_t ctx,
|
||||
|
@ -85,6 +85,7 @@ GPGME_1.1 {
|
||||
gpgme_io_writen;
|
||||
|
||||
gpgme_set_pinentry_mode;
|
||||
gpgme_get_pinentry_mode;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user