From b0c6da9bdc68fd692d3a4e620a75e7f4ef10555b Mon Sep 17 00:00:00 2001 From: Nicholas Guriev Date: Fri, 8 Dec 2017 23:16:12 +0300 Subject: [PATCH] Add extern "C" wrapper It perhaps fixes build failure against ancient OpenSSL. See also: https://github.com/openssl/openssl/commit/17e80c6 --- VoIPController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VoIPController.cpp b/VoIPController.cpp index c81673fbf8..1003e508bb 100644 --- a/VoIPController.cpp +++ b/VoIPController.cpp @@ -100,10 +100,12 @@ bool VoIPController::didInitWin32TimeScale = false; #define SHA256_LENGTH 32 #ifndef TGVOIP_USE_CUSTOM_CRYPTO +extern "C" { #include #include #include #include +} void tgvoip_openssl_aes_ige_encrypt(uint8_t* in, uint8_t* out, size_t length, uint8_t* key, uint8_t* iv){ AES_KEY akey;