tls pr1099 v1

@chifflier this fixes my QA issues

Prscript:
- PR build: https://buildbot.openinfosecfoundation.org/builders/inliniac/builds/24
- PR pcaps: https://buildbot.openinfosecfoundation.org/builders/inliniac-pcap/builds/24