summaryrefslogtreecommitdiff
path: root/src/lib/libssl
diff options
context:
space:
mode:
authorjsing <>2015-08-27 15:26:50 +0000
committerjsing <>2015-08-27 15:26:50 +0000
commit4cf0ea2d0621bc7128cf6a7cb3ed6a178f835617 (patch)
treed2c2a8c6fc1b8da3c4117997a97ab03f0ac74f21 /src/lib/libssl
parent9385a1fd21f3850678c58b5cc8702c3a54b91ead (diff)
downloadopenbsd-4cf0ea2d0621bc7128cf6a7cb3ed6a178f835617.tar.gz
openbsd-4cf0ea2d0621bc7128cf6a7cb3ed6a178f835617.tar.bz2
openbsd-4cf0ea2d0621bc7128cf6a7cb3ed6a178f835617.zip
Improve libtls error messages.
The tls_set_error() function previously stored the errno but did nothing with it. Change tls_set_error() to append the strerror(3) of the stored errno so that we include useful information regarding failures. Provide a tls_set_errorx() function that does not store the errno or include strerror(3) in the error message. Call this function instead of tls_set_error() for errors where the errno value has no useful meaning. With feedback from and ok doug@
Diffstat (limited to 'src/lib/libssl')
0 files changed, 0 insertions, 0 deletions