Page 1 of 1

SSL_connect overflows stack

Posted: Sat Apr 11, 2015 10:57 am
by John.Ohl
If NB_SSL_SUPPORTED is defined and NB_SSH_SUPPORTED is left undefined, all the stack sizes are left set to 2048, causing SSL_connect to overflow the stack if it is called from the main stack or any other stack for which the size is < ~4096

Thx!

Re: SSL_connect overflows stack

Posted: Mon Apr 13, 2015 8:51 am
by dciliske
You are correct sir. The new check is

Code: Select all

#if defined NB_SSH_SUPPORTED || defined NB_SSL_SUPPORTED
Also, in predefs.h the define for TLS is moved to be automatically set when SSL is enabled, and (if for some reason you didn't want it (?)) can be disabled.

-Dan

Re: SSL_connect overflows stack

Posted: Mon Apr 13, 2015 11:22 am
by John.Ohl
Sounds good thx!