Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Empty functions for !ENABLE_SSL
  • Loading branch information
spdfrk authored and perexg committed Aug 6, 2014
1 parent 3340ad2 commit 5c11131
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions src/descrambler/libaesdec/libaesdec.h
Expand Up @@ -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_ */

0 comments on commit 5c11131

Please sign in to comment.