~rcr/rirc

352aaabcf2c5147c800b0f4c2a990e24b6758a42 — Richard Robbins 21 days ago 1b6f573
fix error message parsing on mbedtls x509 error
1 files changed, 7 insertions(+), 3 deletions(-)

M src/io.c
M src/io.c => src/io.c +7 -3
@@ 1003,7 1003,7 @@ err:
static int
io_tls_x509_vrfy(struct connection *cx)
{
	char *s, *p;
	char *p;
	char buf[1024];
	uint32_t ret;



@@ 1016,9 1016,13 @@ io_tls_x509_vrfy(struct connection *cx)
	if (mbedtls_x509_crt_verify_info(buf, sizeof(buf), "", ret) < 0)
		return -1;

	for (s = buf; s && *s; s = p) {
	p = buf;

		if ((p = strchr(buf, '\n')))
	while (p && *p) {

		const char *s = p;

		if ((p = strchr(p, '\n')))
			*p++ = 0;

		io_error(cx, " .... %s", s);