]> jfr.im git - solanum.git/commit - libratbox/src/openssl.c
openssl: Avoid cutting off OpenSSL errors at 119 chars.
authorJilles Tjoelker <redacted>
Sat, 8 May 2010 22:30:51 +0000 (00:30 +0200)
committerJilles Tjoelker <redacted>
Sat, 8 May 2010 22:30:51 +0000 (00:30 +0200)
commit918d73d562e8b74fa1a5fa3332fe92f77bca8834
tree688b2b943f306b2a2c340e230fc74cdf8b1bc9f3
parent73d83e6db02ef63c302ccda8815c45dd52aa8680
openssl: Avoid cutting off OpenSSL errors at 119 chars.

ERR_error_string() is just broken, as it returns at most 119 chars
which means error messages are frequently truncated.
Allow for 511 chars using ERR_error_string_n().
libratbox/src/openssl.c