cmail-mta / cmail

SQLite-backed mail processing suite
BSD 2-Clause "Simplified" License
50 stars 2 forks source link

Log proper gnutls error messages #57

Open cbdevnet opened 7 years ago

cbdevnet commented 7 years ago

Most error checks in https://github.com/cmail-mta/cmail/blob/master/lib/tls.c only print a generic error message.

Better/more helpful ones could be extracted by calling gnutls_strerror.

This should probably also be extended to most other gnutls_ calls (though there aren't that many that are not in the library file.