client example shouldn't use set_verify w/ no certs

This commit is contained in:
toddouska 2013-03-14 17:13:11 -07:00
parent 2d9ed696c6
commit dd4be2496a

View File

@ -361,8 +361,10 @@ void client_test(void* args)
err_sys("can't load ca file, Please run from CyaSSL home dir");
}
#endif
#if !defined(NO_CERTS)
if (!usePsk && doPeerCheck == 0)
CyaSSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, 0);
#endif
#ifdef HAVE_CAVIUM
CyaSSL_CTX_UseCavium(ctx, CAVIUM_DEV_ID);