[FreeNX-kNX] qtnx (nxcl) with encryption for standard ssh support

Jeremy Wilkins wjeremy at shaw.ca
Wed Apr 23 06:28:21 UTC 2008


Thank you for this patch Fabian.  It will be implemented in the next release
I make for Ubuntu with NX 3.2.0 and the debut of freenx-client in my
packages.  Are there any other patches that I might need to apply?


Fabian Franz wrote:
> 
> Hi,
> 
> regarding my message and using the same method
> 
> http://lists.kde.org/?l=freenx-knx&m=118529803730870&w=2
> 
> I now implemented support for standard ssh in SVN for nxcl.
> 
> The new patch for nxproxy is attached.
> 
> This means qtnx could now enter debian for example.
> 
> cu
> 
> Fabian
> 
> --- Main.c.old	2007-07-18 17:39:13.000000000 +0200
> +++ Main.c	2008-03-12 04:40:30.000000000 +0100
> @@ -36,28 +36,48 @@
>    int result = -1;
>  
>    char *options = NULL;
> -
> +  
> +  char *nx_commfd_str = NULL;
> +  
>    options = getenv("NX_DISPLAY");
> -
> -  if (NXTransParseCommandLine(argc, argv) < 0)
> +  
> +  if ((nx_commfd_str = getenv("NX_COMMFD")) != NULL)
>    {
> -    NXTransCleanup();
> -  }
> +  	int nx_commfd = atoi(nx_commfd_str);
>  
> -  if (NXTransParseEnvironment(options, 0) < 0)
> -  {
> -    NXTransCleanup();
> +	if (result)
> +		result = NXTransCreate(nx_commfd, NX_MODE_SERVER, options);
> + 
> +	// go into endless loop
> +
> +	if (result)
> +	{
> +		while (NXTransRunning(NX_FD_ANY))
> +			result = NXTransContinue(NULL);
> +	}
>    }
> +  else
> +  {
> +    if (NXTransParseCommandLine(argc, argv) < 0)
> +    {
> +      NXTransCleanup();
> +    }
> +
> +    if (NXTransParseEnvironment(options, 0) < 0)
> +    {
> +      NXTransCleanup();
> +    }
> +
> +   /*
> +    * This should not return...
> +    */
> +
> +    #ifdef TEST
> +    fprintf(stderr, "Main: Yielding control to NX entry point.\n");
> +    #endif
>  
> -  /*
> -   * This should not return...
> -   */
> -
> -  #ifdef TEST
> -  fprintf(stderr, "Main: Yielding control to NX entry point.\n");
> -  #endif
> -
> -  result = NXTransProxy(NX_FD_ANY, NX_MODE_ANY, NX_DISPLAY_ANY);
> +    result = NXTransProxy(NX_FD_ANY, NX_MODE_ANY, NX_DISPLAY_ANY);
> +  }
>  
>    /*
>     * ...So these should not be called.
> 
> ________________________________________________________________
>      Were you helped on this list with your FreeNX problem?
>     Then please write up the solution in the FreeNX Wiki/FAQ:
>   http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ
>          Don't forget to check the NX Knowledge Base:
>                  http://www.nomachine.com/kb/ 
> 
> ________________________________________________________________
>        FreeNX-kNX mailing list --- FreeNX-kNX at kde.org
>       https://mail.kde.org/mailman/listinfo/freenx-knx
> ________________________________________________________________
> 

-- 
View this message in context: http://www.nabble.com/qtnx-%28nxcl%29-with-encryption-for-standard-ssh-support-tp15997416p16832248.html
Sent from the freenx-knx mailing list archive at Nabble.com.




More information about the FreeNX-kNX mailing list