Hi,
The code you specified above is specific to our Micrium uC/OS build, which I'm guessing you're probably not using. Your IDE may have just found the wrong XMALLOC define when you searched for the macro being called.
But it does sounds like you are running out of memory if XMALLOC is failing. Sometimes the Google certs get fairly large (I've seen up to 11kB for a single cert). If you are using the normal big integer math library, with 2048-bit RSA keys, expected stack usage should be around 7kB, with heap usage around 17kB.
In addition to those numbers, wolfSSL's I/O buffer can grow up to 16kB (on the heap). This I/O buffer starts at 1kB, then grows and shrinks as needed. The maximum SSL/TLS record size is defined as 16kB. You may be able to reduce this using the Maximum Fragment Length Extension, which let's you specify a smaller maximum record size to use.
We put out a blog post about the Maximum Fragment Length Extension a while back, which can be found here:
http://www.yassl.com/yaSSL/Blog/Entries … yaSSL.html
API documentation for those functions can be found here:
http://www.yassl.com/yaSSL/Docs-cyassl- … sions.html
Best Regards,
Chris