From 0ff7eac6fc79ad59e0b950c80906fc5b897d1b9a Mon Sep 17 00:00:00 2001 From: Logan007 Date: Sun, 26 Apr 2020 20:41:28 +0200 Subject: [PATCH] made openssl_err_as_string static to avoid conflicts with other ciphers that would also use their own function - those can't rely on the AES module being there --- transform_aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transform_aes.c b/transform_aes.c index 59d3281..f994c8f 100644 --- a/transform_aes.c +++ b/transform_aes.c @@ -77,7 +77,7 @@ static int transop_deinit_aes(n2n_trans_op_t *arg) { #ifdef OPENSSL_1_1 /* get any erorr message out of openssl taken from https://en.wikibooks.org/wiki/OpenSSL/Error_handling */ -char *openssl_err_as_string (void) { +static char *openssl_err_as_string (void) { BIO *bio = BIO_new (BIO_s_mem ()); ERR_print_errors (bio); char *buf = NULL;