tls/openssl: improve logging

Log error names and codes to increase verbosity in debug mode.
This commit is contained in:
Dmitry Podgorny
2020-06-18 22:18:59 +03:00
parent bef411f319
commit 197896ba1b
2 changed files with 118 additions and 4 deletions

View File

@@ -18,6 +18,10 @@
#include "ostypes.h"
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#endif /* ARRAY_SIZE */
/* TODO evaluate x and y only once */
#define xmpp_min(x, y) ((x) < (y) ? (x) : (y))