mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-05 23:48:14 +00:00
f317f8e67e
The format _strings_ were previously centralised into the platform- independent console.c, as const char arrays. Now the actual formatting operation is centralised as well, by means of console.c providing a function that takes all the necessary parameters and returns a formatted piece of text for the console. Mostly this is so that I can add extra parameters to the message with some confidence: changing a format string in one file and two fprintf statements in other files to match seems like the kind of situation you wish you hadn't got into in the first place :-)
19 lines
607 B
C
19 lines
607 B
C
/*
|
|
* Common pieces between the platform console frontend modules.
|
|
*/
|
|
|
|
char *hk_absentmsg_common(const char *keytype, const char *fingerprint);
|
|
extern const char hk_absentmsg_interactive_intro[];
|
|
extern const char hk_absentmsg_interactive_prompt[];
|
|
|
|
char *hk_wrongmsg_common(const char *keytype, const char *fingerprint);
|
|
extern const char hk_wrongmsg_interactive_intro[];
|
|
extern const char hk_wrongmsg_interactive_prompt[];
|
|
|
|
extern const char weakcrypto_msg_common_fmt[];
|
|
|
|
extern const char weakhk_msg_common_fmt[];
|
|
|
|
extern const char console_continue_prompt[];
|
|
extern const char console_abandoned_msg[];
|