Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - stunnel on QNX: (12 Items)
   
stunnel on QNX  
Can anyone share any information about stunnel (SSL Proxy) support for QNX? I have reason to believe that this 
application is supported on QNX but I have been so far unable to find any additional resources about it running on QNX. 


I have downloaded the source but have yet to get the 6.4.1 toolchain to successfully cross compile (win32 x86-> qnx ppc)
--has anyone successfully done this?

Mike
Re: stunnel on QNX  
On 06/05/10 01:01 PM, Owen James wrote:
> Can anyone share any information about stunnel (SSL Proxy) support for QNX? I have reason to believe that this 
application is supported on QNX but I have been so far unable to find any additional resources about it running on QNX.
>    
Personally I'm not familiar with stunnel but what I just read about it 
says it relies on openssl, which QNX does have.
> I have downloaded the source but have yet to get the 6.4.1 toolchain to successfully cross compile (win32 x86->  qnx 
ppc)--has anyone successfully done this?
>    
Yes, I do it all the time :-)

If you're using the "latest and greatest" code, you will have to look at 
the posts in the build forum...

> Mike
>    
Is it Owen or Mike? :-)

Cheers!
/P
Re: stunnel on QNX  
Either Mike/Owen one is fine--yes, I've also been able to cross-compile some other things easily but as I was unable to 
do so with stunnel, I was wondering if there was any gotchas I should have been looking for before I start getting my 
hands dirty.
Re: stunnel on QNX  
On 06/05/10 01:25 PM, Owen James wrote:
> Either Mike/Owen one is fine--yes, I've also been able to cross-compile some other things easily but as I was unable 
to do so with stunnel, I was wondering if there was any gotchas I should have been looking for before I start getting my
 hands dirty.
>    
Well, I haven't even seen the stunnel source code, never mind a binary 
so I couldn't tell you :-) You should check out pkgsrc, maybe there's 
something there...

Good luck!
/P
Re: stunnel on QNX  
Got it ported now, works just fine.

Only one question: was the ssl library in the 6.4.1 SDK not compiled with pthread support? If so, why?
Re: stunnel on QNX  
On 07/05/10 01:01 PM, Owen James wrote:
> Got it ported now, works just fine.
>    
Great :-)
> Only one question: was the ssl library in the 6.4.1 SDK not compiled with pthread support? If so, why?
>    
I'm not sure what you mean by that. Note: pthreads are part of libc.
/P
Re: stunnel on QNX  
On Wed, May 12, 2010 at 02:15:54PM -0400, Patrik Lahti wrote:
> On 07/05/10 01:01 PM, Owen James wrote:
> > Got it ported now, works just fine.
> >    
> Great :-)
> > Only one question: was the ssl library in the 6.4.1 SDK not compiled with pthread support? If so, why?
> >    
> I'm not sure what you mean by that. Note: pthreads are part of libc.

libcrypto and libssl get compiled with -DOPENSSL_THREADS defined.

-seanb
Re: stunnel on QNX  
On 12/05/10 02:19 PM, Sean Boudreau wrote:
> On Wed, May 12, 2010 at 02:15:54PM -0400, Patrik Lahti wrote:
>    
>> On 07/05/10 01:01 PM, Owen James wrote:
>>      
>>> Got it ported now, works just fine.
>>>
>>>        
>> Great :-)
>>      
>>> Only one question: was the ssl library in the 6.4.1 SDK not compiled with pthread support? If so, why?
>>>
>>>        
>> I'm not sure what you mean by that. Note: pthreads are part of libc.
>>      
> libcrypto and libssl get compiled with -DOPENSSL_THREADS defined.
>    
Yeah, so Owen, why do you say openssl is without pthread support?
/P
Re: stunnel on QNX  
On Wed, May 12, 2010 at 02:25:12PM -0400, Patrik Lahti wrote:
> On 12/05/10 02:19 PM, Sean Boudreau wrote:
> > On Wed, May 12, 2010 at 02:15:54PM -0400, Patrik Lahti wrote:
> >    
> >> On 07/05/10 01:01 PM, Owen James wrote:
> >>      
> >>> Got it ported now, works just fine.
> >>>
> >>>        
> >> Great :-)
> >>      
> >>> Only one question: was the ssl library in the 6.4.1 SDK not compiled with pthread support? If so, why?
> >>>
> >>>        
> >> I'm not sure what you mean by that. Note: pthreads are part of libc.
> >>      
> > libcrypto and libssl get compiled with -DOPENSSL_THREADS defined.
> >    
> Yeah, so Owen, why do you say openssl is without pthread support?
> /P

It's also defined in the shipped /usr/include/openssl/opensslconf.h.

-seanb
Re: stunnel on QNX  
Yes, I was just getting to opensslconf.h, lots of replies :-).

If I compile stunnel with -DUSE_PTHREAD, the following #define error gets hit:

#define OPENSSL_THREAD_DEFINES
#include <openssl/opensslconf.h>
#if !defined(OPENSSL_THREADS) && defined(USE_PTHREAD)
#error OpenSSL library compiled without thread support
#endif /* !OPENSSL_THREADS && USE_PTHREAD */

Looking at my <openssl/opensslconf.h>, versioned at:

__SRCVERSION( "$URL: http://community.qnx.com/svn/repos/core_networking/branches/6.4.1/trunk/lib/crypto/openssl/
opensslconf.h $ $Rev: 972 $" )

there is no OPENSSL_THREADS defined. This is a standard 6.4.1 SDK install, did I miss a patch?
Re: stunnel on QNX  
Any further thoughts? From your replies, it would appear my version of opensslconf.h is inconsistent with what was 
intended to be in 6.4.1.
Re: stunnel on QNX  
On Mon, May 17, 2010 at 09:20:50AM -0400, Owen James wrote:
> Any further thoughts? From your replies, it would appear my version of opensslconf.h is inconsistent with what was 
intended to be in 6.4.1.
> 

I was looking at the 6.5 stuff.  It's 'fixed' therein.

Regards,

-seanb