The OpenSSL project provides a toolkit and cryptography library for implementing the TLS protocol.
http://www.openssl.org/