cURL / Mailing Lists / curl-library / Single Mail

curl-library

libcurl 7.16.0 + OpenSSL 0.9.8d under QNX 6.3.0 SP1 - Manual Configuration of config.h

From: Stefan Krause <stefan.krause_at_gmx.net>
Date: Thu, 22 Feb 2007 20:53:51 +0100

Hi all,

I want to integrate libCurl 7.16.0 with OpenSSL 0.9.8d under QNX SP1.
Currently libCurl 7.16.0 runs without OpenSSL under QNX.
I don't use the configure script to setup the .h files (config.h). When
building libCurl I use the defines HAVE_CONFIG_H and FD_SETSIZE=64
for the compiler and a handcrafted config.h. In config.h I set the
following defines:

#define HAVE_LIBSSL 1
#define HAVE_OPENSSL_CRYPTO_H 1
#define HAVE_OPENSSL_ENGINE_H 1
#defineHAVE_OPENSSL_ERR_H 1
#undef HAVE_OPENSSL_PEM_H 1
#define HAVE_OPENSSL_PKCS12_H 1
#define HAVE_OPENSSL_RSA_H 1
#define HAVE_OPENSSL_SSL_H 1
#define HAVE_OPENSSL_X509_H 1
#define HAVE_SSL_H 1
#define USE_OPENSSL 1
#define USE_SSLEAY 1

The OpenSSL library was compiled by an external supplier for QNX. I link
it statically to my application.

Furthermore the application is heavyly multithreaded, and as I write
only a part of it, I followed
the suggestion to create a static class which calls
curl_global_init(CURL_GLOBAL_ALL) in the
Ctor and curl_global_cleanup() in the Dtor in order to properly setup
the curl library.
But libcurl is not used by multiple threads simultaneously.
The app compiles and linkes without errors. When I then download from a
https:// URL curl states
"SSL is disabled, https: not supported!"

1) Does anybody know if I forgot some important step / configuration
setting ?
2) Does anybody has experience with one of the latest libcurl 7.15.x /
7.16.x versions
     together with OpenSSL 0.9.8d under QNX 6.3.0 ? Are there any known
pitfalls?
     Is there more documentation available on that topic?

Kind regards

Stefan
Received on 2007-02-22