--- vinagre-3.18.2/plugins/rdp/vinagre-rdp-tab.c.orig 2015-10-06 17:40:06.000000000 +0200 +++ vinagre-3.18.2/plugins/rdp/vinagre-rdp-tab.c 2016-01-10 14:17:56.016186573 +0100 @@ -1107,12 +1107,14 @@ settings->encryption_method = ENCRYPTION_METHOD_40BIT | ENCRYPTION_METHOD_128BIT | ENCRYPTION_METHOD_FIPS; settings->encryption_level = ENCRYPTION_LEVEL_CLIENT_COMPATIBLE; #endif +#if HAVE_FREERDP_1_1 #include #if (FREERDP_VERSION_MAJOR == 1 && FREERDP_VERSION_MINOR >= 2 && FREERDP_VERSION_REVISION >= 1) || (FREERDP_VERSION_MAJOR == 2) settings->UseRdpSecurityLayer = FALSE; #else settings->DisableEncryption = FALSE; #endif +#endif /* Set display size */ #if HAVE_FREERDP_1_1 @@ -1152,8 +1154,10 @@ freerdp_kbd_init (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), KBD_US); #endif +#if HAVE_FREERDP_1_1 /* Allow font smoothing by default */ settings->AllowFontSmoothing = TRUE; +#endif } static void @@ -1207,10 +1207,13 @@ init_freerdp (rdp_tab); init_display (rdp_tab); +#if HAVE_FREERDP_1_1 do { +#endif /* Run FreeRDP session */ success = freerdp_connect (priv->freerdp_session); +#if HAVE_FREERDP_1_1 if (!success) { authentication_errors += freerdp_get_last_error (priv->freerdp_session->context) == 0x20009 || @@ -1223,11 +1226,14 @@ } } while (!success && authentication_errors < 3); +#endif if (!success) { gtk_window_unfullscreen (window); +#if HAVE_FREERDP_1_1 if (!cancelled) +#endif vinagre_utils_show_error_dialog (_("Error connecting to host."), NULL, window);