Outlines for most tls functionality, commented out to work on bug