From 6036d4f37ad97ee1a9a830b36fb2edf9b82e3a3b Mon Sep 17 00:00:00 2001 From: fusion32 Date: Tue, 18 Nov 2025 15:35:22 -0300 Subject: overall improvements + support STATUS requests --- src/crypto.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/crypto.cc') diff --git a/src/crypto.cc b/src/crypto.cc index 8be90fd..6e50b33 100644 --- a/src/crypto.cc +++ b/src/crypto.cc @@ -1,4 +1,4 @@ -#include "login.hh" +#include "common.hh" #include #include @@ -7,7 +7,9 @@ static void DumpOpenSSLErrors(const char *Where, const char *What){ LOG_ERR("OpenSSL error(s) while executing %s at %s:", What, Where); ERR_print_errors_cb( - [](const char *str, usize len, void *u) -> int { + [](const char *str, size_t len, void *u) -> int { + (void)u; + // NOTE(fusion): These error strings already have trailing newlines, // for whatever reason. if(len > 0 && str[len - 1] == '\n'){ -- cgit v1.2.3