tls_generic_test sanitisation.

Because TLS != Crypto. Anyway I discussed it with @kacfengine and I'm writing a different wrapper for crypto.c errors.