I blogged about building TLS at http://www.magicsplat.com/blog/building-openssl-tls/

Might work for you.

/Ashok