mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Pageant client: functions to send reencryption requests.
The reencrypt-all request is unusual in its ability to be _partially_ successful. To handle this I've introduced a new return status, PAGEANT_ACTION_WARNING. At the moment, users of this client code don't expect it to appear on any request, and I'll make them watch for it only in the case where I know a particular function can generate it.
This commit is contained in:
@ -211,7 +211,9 @@ void pageant_listener_free(struct pageant_listen_state *pl);
|
||||
enum {
|
||||
PAGEANT_ACTION_OK, /* success; no further action needed */
|
||||
PAGEANT_ACTION_FAILURE, /* failure; *retstr is error message */
|
||||
PAGEANT_ACTION_NEED_PP /* need passphrase: *retstr is key comment */
|
||||
PAGEANT_ACTION_NEED_PP, /* need passphrase: *retstr is key comment */
|
||||
PAGEANT_ACTION_WARNING, /* success but with a warning message;
|
||||
* *retstr is warning message */
|
||||
};
|
||||
int pageant_add_keyfile(Filename *filename, const char *passphrase,
|
||||
char **retstr, bool add_encrypted);
|
||||
@ -236,5 +238,7 @@ int pageant_enum_keys(pageant_key_enum_fn_t callback, void *callback_ctx,
|
||||
char **retstr);
|
||||
int pageant_delete_key(struct pageant_pubkey *key, char **retstr);
|
||||
int pageant_delete_all_keys(char **retstr);
|
||||
int pageant_reencrypt_key(struct pageant_pubkey *key, char **retstr);
|
||||
int pageant_reencrypt_all_keys(char **retstr);
|
||||
int pageant_sign(struct pageant_pubkey *key, ptrlen message, strbuf *out,
|
||||
uint32_t flags, char **retstr);
|
||||
|
Reference in New Issue
Block a user