mirror of
https://github.com/danog/libtgvoip.git
synced 2024-11-30 04:39:03 +01:00
Add extern "C" wrapper
It perhaps fixes build failure against ancient OpenSSL. See also: https://github.com/openssl/openssl/commit/17e80c6
This commit is contained in:
parent
f2e246c1bf
commit
b0c6da9bdc
@ -100,10 +100,12 @@ bool VoIPController::didInitWin32TimeScale = false;
|
||||
#define SHA256_LENGTH 32
|
||||
|
||||
#ifndef TGVOIP_USE_CUSTOM_CRYPTO
|
||||
extern "C" {
|
||||
#include <openssl/sha.h>
|
||||
#include <openssl/aes.h>
|
||||
#include <openssl/modes.h>
|
||||
#include <openssl/rand.h>
|
||||
}
|
||||
|
||||
void tgvoip_openssl_aes_ige_encrypt(uint8_t* in, uint8_t* out, size_t length, uint8_t* key, uint8_t* iv){
|
||||
AES_KEY akey;
|
||||
|
Loading…
Reference in New Issue
Block a user