REASON() -> GET_ERR_REASON(). Add some more utilities to tlsInt.h (not used yet)