1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 01:18:00 +00:00
putty-source/stubs/no-ca-config.c
Simon Tatham 4fcb3bbe81 Move host CA config box out into its own source file.
In the course of polishing up this dialog box, I'm going to want it to
actually do cryptographic things (such as checking validity of a
public key blob and printing its fingerprint), which means it will
need to link against SSH utility functions.

So I've moved the dialog-box setup and handling code out of config.c
into a new file in the ssh subdirectory and in the ssh library, where
those facilities will be conveniently available.

This also means that dialog-box setup code _won't_ be linked into
PuTTYtel or pterm (on either platform), so I've added a stub source
file to provide its entry-point function in those tools. Also,
provided a const bool to indicate whether that dialog is available,
which we use to decide whether to recognise that command-line option.
2022-05-01 10:16:19 +01:00

15 lines
305 B
C

/*
* Stub version of setup_ca_config_box, for tools that don't have SSH
* code linked in.
*/
#include "putty.h"
#include "dialog.h"
const bool has_ca_config_box = false;
void setup_ca_config_box(struct controlbox *b)
{
unreachable("should never call setup_ca_config_box in this application");
}