1 (edited by jonas123 2014-09-18 02:35:28)

Topic: Porting CyaSSL to Crossworks CTL

Hi,

I use Crossworks CTL RTOS on a LPC1778(Cortex-M3) with gcc compiler. I want to use wolfSSL to be able to send encrypted mail (so I only need it configured to be a client). I've downloaded downloaded wolfSSL version 3.2.1. I've added the following c-files to my project:

        <file file_name="cyassl_3_2_0/src/crl.c"/>
        <file file_name="cyassl_3_2_0/src/internal.c"/>
        <file file_name="cyassl_3_2_0/src/io.c"/>
        <file file_name="cyassl_3_2_0/src/keys.c"/>
        <file file_name="cyassl_3_2_0/src/ocsp.c"/>
        <file file_name="cyassl_3_2_0/src/sniffer.c"/>
        <file file_name="cyassl_3_2_0/src/ssl.c"/>
        <file file_name="cyassl_3_2_0/src/tls.c"/>

I've added the following defines to settings.h:

#define CYASSL_USER_IO
#define NO_FILESYSTEM
#define NO_WRITEV
#define CYASSL_LEANPSK
#define XMALLOC(s, h, type)  malloc((s))
#define XFREE(p, h, type)    free((p))

When I compile I get the following error:

undefined reference to `FreeSignerTable'

I can see that this function isn't defined. Is the meaning that I should define it?

I'm grateful for any help with this.

Share

Re: Porting CyaSSL to Crossworks CTL

Hi Jonas,

There are some additional defines that we use together with CYASSL_LEANPSK.  From configure.ac, inside of the leanPSK section, the complete list is:

-DCYASSL_LEANPSK -DHAVE_NULL_CIPHER -DSINGLE_THREADED -DNO_AES -DNO_FILESYSTEM -DNO_RABBIT -DNO_RSA -DNO_DSA -DNO_DH -DNO_CERTS -DNO_PWDBASED -DNO_DES3 -DNO_MD4 -DNO_MD5 -DNO_ERROR_STRINGS -DNO_OLD_TLS -DNO_RC4 -DNO_WRITEV -DNO_SESSION_CACHE -DNO_DEV_RANDOM -DCYASSL_USER_IO -DNO_SHA -DUSE_SLOW_SHA

I think adding NO_CERTS may solve your issue, but you may need to add some (or all) of the others as well.  Let us know if that works.

Thanks,
Chris