Some information about this very powerful library
http://www.cs.auckland.ac.nz/%7Epgut.../download.html

and an example of an SSL/TLS SMTP session
http://www.coastrd.com/smtps/cryptlib