summaryrefslogtreecommitdiffstats
path: root/x11vnc/sslcmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/sslcmds.c')
-rw-r--r--x11vnc/sslcmds.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/x11vnc/sslcmds.c b/x11vnc/sslcmds.c
index f096391..0abe9c7 100644
--- a/x11vnc/sslcmds.c
+++ b/x11vnc/sslcmds.c
@@ -53,6 +53,7 @@ int start_stunnel(int stunnel_port, int x11vnc_port, int hport, int x11vnc_hport
void stop_stunnel(void);
void setup_stunnel(int rport, int *argc, char **argv);
char *get_Cert_dir(char *cdir_in, char **tmp_in);
+void sslScripts(void);
void sslGenCA(char *cdir);
void sslGenCert(char *ty, char *nm);
void sslEncKey(char *path, int info_only);
@@ -558,6 +559,15 @@ static char *getsslscript(char *cdir, char *name, char *script) {
return scr;
}
+void sslScripts(void) {
+ fprintf(stdout, "======================================================\n");
+ fprintf(stdout, "genCA script for '-sslGenCA':\n\n");
+ fprintf(stdout, "%s\n", genCA);
+ fprintf(stdout, "======================================================\n");
+ fprintf(stdout, "genCert script for '-sslGenCert', etc.:\n\n");
+ fprintf(stdout, "%s\n", genCert);
+}
+
void sslGenCA(char *cdir) {
char *cmd, *scr = getsslscript(cdir, "genca", genCA);