1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Unix Pageant: link in uxagentc.c and uxcons.c.

This brings in the code we'll need to request passphrases from the
terminal, and to talk to an existing SSH agent as a client.

Adding uxcons.c required adjusting the set of stub functions in
uxpgnt.c: uxcons.c removed the need for several, but added one of its
own (log_eventlog). A net win, though.
This commit is contained in:
Simon Tatham
2015-05-11 17:56:51 +01:00
parent da944972d8
commit cd528f3e76
2 changed files with 9 additions and 10 deletions

View File

@ -93,7 +93,6 @@ void uxsel_input_remove(int id) { }
/*
* More stubs.
*/
void logevent(void *frontend, const char *string) {}
void random_save_seed(void) {}
void random_destroy_seed(void) {}
void noise_ultralight(unsigned long data) {}
@ -102,8 +101,7 @@ int platform_default_i(const char *name, int def) { return def; }
FontSpec *platform_default_fontspec(const char *name) { return fontspec_new(""); }
Filename *platform_default_filename(const char *name) { return filename_from_str(""); }
char *x_get_default(const char *key) { return NULL; }
void old_keyfile_warning(void) {}
void timer_change_notify(unsigned long next) {}
void log_eventlog(void *handle, const char *event) {}
/*
* Short description of parameters.
@ -131,10 +129,6 @@ void keylist_update(void)
const char *const appname = "Pageant";
char *platform_get_x_display(void) {
return dupstr(getenv("DISPLAY"));
}
static int time_to_die = FALSE;
/* Stub functions to permit linking against x11fwd.c. These never get
@ -281,6 +275,10 @@ const char *display = NULL;
void run_client(void)
{
if (!agent_exists()) {
fprintf(stderr, "pageant: no agent running to talk to\n");
exit(1);
}
fprintf(stderr, "NYI\n");
exit(1);
}