Turns out I didn't have enough room on the stack for wolfSSL embedded SSL to work properly. I increased the allocated space, and now it works!

I'm running wolfSSL on a Freescale MQX 3.8 based board and am having an issue with the TLS handshake. I'm trying to send an email message through smtp.gmail.com, which requires TLS. Everything seems to be working in the handshake up until the the mail server sends the Hello Done, which is preceeded by the certificate. wolfSSL successfully validates the cert, but when it calls ProcessReply() to get the Hello Done, it never returns. I've traced it down to the RTCS socket recv() call itself that blocks. Any ideas as to why this is happening?