accept depth and sni options
Merge pull request #131 from deadtrickster/ssl

accept depth and sni options