The debug messages printed inside PolarSSL always seems to end with a
newline. So 'infof()' should not add one. Besides the trace 'line'
should be 'const'.
#undef POLARSSL_DEBUG
#ifdef POLARSSL_DEBUG
-static void polarssl_debug(void *context, int level, char *line)
+static void polarssl_debug(void *context, int level, const char *line)
{
struct SessionHandle *data = NULL;
data = (struct SessionHandle *)context;
- infof(data, "%s\n", line);
+ infof(data, "%s", line);
+ (void) level;
}
#else
#endif