diff options
| author | Ben Kibbey <[email protected]> | 2015-04-17 01:05:01 +0000 | 
|---|---|---|
| committer | Ben Kibbey <[email protected]> | 2015-08-15 22:19:27 +0000 | 
| commit | 6dd24c3c6133ec54f75abd056191a8027fe01de0 (patch) | |
| tree | b5a325d3120370417498981db36cc3c1b3293cae /src/decrypt.c | |
| parent | Add gpgme_set/get_status_cb(). (diff) | |
| download | gpgme-6dd24c3c6133ec54f75abd056191a8027fe01de0.tar.gz gpgme-6dd24c3c6133ec54f75abd056191a8027fe01de0.zip | |
Parse the INQUIRE_MAXLEN status message.
* src/gpgme.h.in: (gpgme_status_code_t): Add INQUIRE_MAXLEN.
* src/status-table.c (status_table_s): Ditto.
* src/genkey.c (genkey_status_handler): Parse INQUIRE_MAXLEN.
* src/decrypt.c (_gpgme_decrypt_status_handler): Ditto.
* src/sign.c (_gpgme_sign_status_handler): Ditto.
This status message informs the client of the maximum length of an
inquired line. It is sent from gpg and forwarded to the client via
gpgme_status_cb_t.
Diffstat (limited to 'src/decrypt.c')
| -rw-r--r-- | src/decrypt.c | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/src/decrypt.c b/src/decrypt.c index 47420601..4fd92c61 100644 --- a/src/decrypt.c +++ b/src/decrypt.c @@ -291,6 +291,16 @@ _gpgme_decrypt_status_handler (void *priv, gpgme_status_code_t code,        err = _gpgme_parse_plaintext (args, &opd->result.file_name);        if (err)  	return err; +      break; + +    case GPGME_STATUS_INQUIRE_MAXLEN: +      if (ctx->status_cb) +        { +          err = ctx->status_cb (ctx->status_cb_value, "INQUIRE_MAXLEN", args); +          if (err) +            return err; +        } +      break;      default:        break; | 
