From 5c11131e3e2552d371acd909bdb4ee0aa16daa0d Mon Sep 17 00:00:00 2001 From: spdfrk1 Date: Tue, 5 Aug 2014 22:30:38 +0200 Subject: [PATCH] Empty functions for !ENABLE_SSL --- src/descrambler/libaesdec/libaesdec.h | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/descrambler/libaesdec/libaesdec.h b/src/descrambler/libaesdec/libaesdec.h index 0dcd4aba..f93ab015 100755 --- a/src/descrambler/libaesdec/libaesdec.h +++ b/src/descrambler/libaesdec/libaesdec.h @@ -8,11 +8,22 @@ #ifndef LIBAESDEC_H_ #define LIBAESDEC_H_ -void *aes_get_key_struct(void); -void aes_free_key_struct(void *keys); -void aes_set_control_words(void *keys, const unsigned char *even, const unsigned char *odd); -void aes_set_even_control_word(void *keys, const unsigned char *even); -void aes_set_odd_control_word(void *keys, const unsigned char *odd); -void aes_decrypt_packet(void *keys, unsigned char *packet); + #include "build.h" + #if ENABLE_SSL + void *aes_get_key_struct(void); + void aes_free_key_struct(void *keys); + void aes_set_control_words(void *keys, const unsigned char *even, const unsigned char *odd); + void aes_set_even_control_word(void *keys, const unsigned char *even); + void aes_set_odd_control_word(void *keys, const unsigned char *odd); + void aes_decrypt_packet(void *keys, unsigned char *packet); + #else + // empty functions + void *aes_get_key_struct(void) { return 0; }; + void aes_free_key_struct(void *keys) { return; }; + void aes_set_control_words(void *keys, const unsigned char *even, const unsigned char *odd) { return; }; + void aes_set_even_control_word(void *keys, const unsigned char *even) { return; }; + void aes_set_odd_control_word(void *keys, const unsigned char *odd) { return; }; + void aes_decrypt_packet(void *keys, unsigned char *packet) { return; }; + #endif #endif /* LIBAESDEC_H_ */