aboutsummaryrefslogtreecommitdiffstats
path: root/g10/main.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-12-11 09:20:15 +0000
committerWerner Koch <[email protected]>2013-12-11 09:20:15 +0000
commit101a54add351ff62793cbfbf3877787c4791f833 (patch)
tree7bf96a96fc6c3cf47ec70f5e78e0ccb97b75d257 /g10/main.h
parentgpg: Change OID of Ed25519 and add Brainpool oids. (diff)
downloadgnupg-101a54add351ff62793cbfbf3877787c4791f833.tar.gz
gnupg-101a54add351ff62793cbfbf3877787c4791f833.zip
gpg: Change --show-session-key to print the session key earlier.
* g10/cpr.c (write_status_strings): New. (write_status_text): Replace code by a call to write_status_strings. * g10/mainproc.c (proc_encrypted): Remove show_session_key code. * g10/decrypt-data.c (decrypt_data): Add new show_session_key code. -- This feature can be used to return the session key for just a part of a file. For example to downloading just the first 32k of a huge file, decrypting that incomplete part and while ignoring all the errors break out the session key. The session key may then be used on the server to decrypt the entire file without the need to have the private key on the server. GnuPG-bug-id: 1389 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--g10/main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/main.h b/g10/main.h
index fd4e5e9ec..1b619e0d1 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -167,6 +167,8 @@ void write_status ( int no );
void write_status_error (const char *where, gpg_error_t err);
void write_status_errcode (const char *where, int errcode);
void write_status_text ( int no, const char *text );
+void write_status_strings (int no, const char *text,
+ ...) GNUPG_GCC_A_SENTINEL(0);
void write_status_buffer ( int no,
const char *buffer, size_t len, int wrap );
void write_status_text_and_buffer ( int no, const char *text,