proposal, library error codes for TLS failures