aboutsummaryrefslogtreecommitdiff
path: root/common-sodium.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-06-08 01:20:31 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-06-08 01:20:31 +0200
commit6c10fd5e3e563791008a22803a536e7436fee073 (patch)
tree15515ede47c465a29facb2d4be34ebee23ea2711 /common-sodium.h
parent2d8bfaab51c2dd42d73c348e238802912e870b22 (diff)
log_bin2hex_sodium cares about logging prio set, fixed missing cleanup on bufferevent failure
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'common-sodium.h')
-rw-r--r--common-sodium.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common-sodium.h b/common-sodium.h
index 7ccfc0c..8f218a0 100644
--- a/common-sodium.h
+++ b/common-sodium.h
@@ -5,9 +5,11 @@
#include <stdlib.h>
#include <stdint.h>
+#include "logging.h"
+
struct connection;
-void log_bin2hex_sodium(char const * const prefix, uint8_t const * const buffer, size_t size);
+void log_bin2hex_sodium(enum log_priority log_prio, char const * const prefix, uint8_t const * const buffer, size_t size);
__attribute__((warn_unused_result)) struct longterm_keypair * generate_keypair_sodium(void);