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

github.com/FreeRDP/FreeRDP-old.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'X11/xf_win.c')
-rw-r--r--X11/xf_win.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/X11/xf_win.c b/X11/xf_win.c
index ce1cc7f..3f6accf 100644
--- a/X11/xf_win.c
+++ b/X11/xf_win.c
@@ -1073,6 +1073,8 @@ RD_BOOL
l_ui_check_certificate(rdpInst * inst, const char * fingerprint,
const char * subject, const char * issuer, RD_BOOL verified)
{
+ //char answer;
+
printf("certificate details:\n");
printf(" Subject:\n %s\n", subject);
printf(" Issued by:\n %s\n", issuer);
@@ -1081,7 +1083,17 @@ l_ui_check_certificate(rdpInst * inst, const char * fingerprint,
if (!verified)
printf("The server could not be authenticated. Connection security may be compromised!\n");
+#if 0
+ printf("Accept this certificate? (Y/N): ");
+ answer = fgetc(stdin);
+
+ if (answer == 'y' || answer == 'Y')
+ return True;
+ else
+ return False;
+#else
return True;
+#endif
}
static int