aboutsummaryrefslogtreecommitdiff
path: root/src/crypto.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto.cc')
-rw-r--r--src/crypto.cc6
1 files changed, 4 insertions, 2 deletions
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 <openssl/err.h>
#include <openssl/rsa.h>
@@ -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'){