1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 13:02:47 -05:00

Factor out some common code in {ux,win}cons.c.

The assorted host-key and warning prompt messages have no reason to
differ between the two platforms, so let's centralise them. Also,
while I'm here, some basic support functions that are the same in both
modules.
This commit is contained in:
Simon Tatham
2021-03-13 09:24:17 +00:00
parent 670f9d8620
commit 3c6ab5bbb7
5 changed files with 214 additions and 318 deletions

17
console.h Normal file
View File

@ -0,0 +1,17 @@
/*
* Common pieces between the platform console frontend modules.
*/
extern const char hk_absentmsg_common_fmt[];
extern const char hk_absentmsg_interactive_intro[];
extern const char hk_absentmsg_interactive_prompt[];
extern const char hk_wrongmsg_common_fmt[];
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[];