curl-library
Re: best embedded ssl for libcurl and howto
Date: Thu, 3 Jan 2013 14:32:37 +0800
I still find the same for polarssl on web page:
http://curl.haxx.se/docs/install.html
In
MORE OPTIONS
------------
*To build with yassl support instead of OpenSSL or GnuTLS, you must build
yassl with its OpenSSL emulation enabled and point to that directory root
with configure --with-ssl.
To build with NSS support instead of OpenSSL for SSL/TLS, note that
you need to use both --without-ssl and --with-nss.
To build with PolarSSL support instead of OpenSSL for SSL/TLS, note that
you need to use both --without-ssl and --with-polarssl.
To build with axTLS support instead of OpenSSL for TLS, note that you
need to use both --without-ssl and --with-axtls.
To get GSSAPI support, build with --with-gssapi and have the MIT or
Heimdal Kerberos 5 packages installed.*
I have also observed that while cross compiling libcurl for my embedded
platform i gave path of polarssl cross compiled for my platform but while
building my project polarssl gave linking error like this:
./curl/libcurl.a(libcurl_la-polarssl.o): In function
`Curl_polarssl_version':polarssl.c:(.text+0x280): undefined reference to
`version_get_number'
./curl/libcurl.a(libcurl_la-polarssl.o): In function
`polarssl_connect_common':polarssl.c:(.text+0x4f0): undefined reference to
`ssl_handshake
:polarssl.c:(.text+0x5a4): undefined reference to `havege_init'
:polarssl.c:(.text+0x5dc): undefined reference to `x509parse_crtfile'
:polarssl.c:(.text+0x630): undefined reference to `x509parse_keyfile'
:polarssl.c:(.text+0x674): undefined reference to `x509parse_crlfile'
:polarssl.c:(.text+0x698): undefined reference to `ssl_init'
:polarssl.c:(.text+0x724): undefined reference to `x509parse_cert_info'
:polarssl.c:(.text+0x994): undefined reference to `ssl_set_endpoint'
:polarssl.c:(.text+0x9ac): undefined reference to `ssl_set_authmode'
:polarssl.c:(.text+0x9c4): undefined reference to `ssl_set_rng'
:polarssl.c:(.text+0x9c8): undefined reference to `havege_random'
:polarssl.c:(.text+0x9e4): undefined reference to `ssl_set_bio'
:polarssl.c:(.text+0x9e8): undefined reference to `net_send'
:polarssl.c:(.text+0x9ec): undefined reference to `net_recv'
:polarssl.c:(.text+0xa08): undefined reference to `ssl_set_ciphersuites'
:polarssl.c:(.text+0xa0c): undefined reference to `ssl_default_ciphersuites'
:polarssl.c:(.text+0xa3c): undefined reference to `ssl_set_session'
:polarssl.c:(.text+0xa60): undefined reference to `ssl_set_ca_chain'
:polarssl.c:(.text+0xa84): undefined reference to `ssl_set_own_cert'
:polarssl.c:(.text+0xad8): undefined reference to `x509parse_crtfile'
:polarssl.c:(.text+0xb98): undefined reference to `ssl_set_hostname'
collect2: ld returned 1 exit status
then i included polarssl in my project and gave path of that in my make
file.
so what was the use of giving path while cross compiling the libcurl. I was
expecting that including libcurl library to my project should be enough to
work out with ssl. but have to include polarssl similar to libcurl.
anyone know why??
Thanks
On Thu, Jan 3, 2013 at 7:12 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Fri, 28 Dec 2012, JALINDAR wrote:
>
> I could compile with Polarssl
>>
>> I compiled polarssl separately for my embedded platform and then passed
>> the path while compiling libcurl.. i got that from ./config --help and
>> Oscar's mail....same what is mentioned for cyassl on this link:
>> http://curl.haxx.se/docs/**install.html<http://curl.haxx.se/docs/install.html>
>>
>> But i wounder it was not mentioned for polarssl and others..
>>
>
> You build with all SSL libraries (except OpenSSL which is the default) the
> same way using configure, cyassl, polarssl, axtls etc.
>
> I've just updated the docs/INSTALL file to mention the same (small)
> procedure for them all.
>
>
> --
>
> / daniel.haxx.se
> ------------------------------**------------------------------**-------
> List admin: http://cool.haxx.se/list/**listinfo/curl-library<http://cool.haxx.se/list/listinfo/curl-library>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-03