1 (edited by Zeddi 2014-01-17 03:00:40)

Topic: [SOLVED] Build error with SNI TLS extension and NO_FILESYSTEM

I encountered a build error when using TLS extensions and especially the SNI extension with NO_FILESYSTEM defined at the same time.

The error is

undefined reference to `test_CyaSSL_client_server'

while linking and occurs a couple of times with /tests/api.c.

The source of the problem seems to be that the function

void test_CyaSSL_client_server(callback_functions* client_callbacks,
                                          callback_functions* server_callbacks);

is within the following define:

#if !defined(NO_FILESYSTEM) && !defined(NO_CERTS)

whereas the function

void test_CyaSSL_UseSNI(void)

which calls test_CyaSSL_client_server multiple times is only within the following defines:

#ifdef HAVE_TLS_EXTENSIONS
#ifdef HAVE_SNI

Regards,
Daniel

Share

Re: [SOLVED] Build error with SNI TLS extension and NO_FILESYSTEM

Hi Daniel,

I pushed the fix to our embedded SSL github HEAD. Thanks for the catch.

Best regards,
Moisés

[ ]'s
Moisés

Share