Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2021-09-15 08:00:38 +0300
committerSimon Tatham <anakin@pobox.com>2021-09-16 15:55:10 +0300
commitf317f8e67e2286863ef81aabe7073283a2307255 (patch)
tree1a7a2106440735fbceab567f6e14fab6daf63c19 /console.h
parente5b6aba63a84b28e7dcece026db47c9ccdb47060 (diff)
Centralise host key message formatting.
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 :-)
Diffstat (limited to 'console.h')
-rw-r--r--console.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/console.h b/console.h
index a8b22466..d28acbdc 100644
--- a/console.h
+++ b/console.h
@@ -2,10 +2,11 @@
* Common pieces between the platform console frontend modules.
*/
-extern const char hk_absentmsg_common_fmt[];
+char *hk_absentmsg_common(const char *keytype, const char *fingerprint);
extern const char hk_absentmsg_interactive_intro[];
extern const char hk_absentmsg_interactive_prompt[];
-extern const char hk_wrongmsg_common_fmt[];
+
+char *hk_wrongmsg_common(const char *keytype, const char *fingerprint);
extern const char hk_wrongmsg_interactive_intro[];
extern const char hk_wrongmsg_interactive_prompt[];