/* */ #ifndef D_ARC4_DECRYPTOR_H #define D_ARC4_DECRYPTOR_H #include "common.h" #ifdef HAVE_LIBGCRYPT # include "LibgcryptARC4Decryptor.h" #elif HAVE_OPENSSL # include "LibsslARC4Decryptor.h" #else // provide empty implementation to compile sources without both libgcrypt and // openssl installed namespace aria2 { class ARC4Decryptor { public: ARC4Decryptor() {} ~ARC4Decryptor() {} void init(const unsigned char* key, size_t keyLength) {} void decrypt(unsigned char* out, size_t outLength, const unsigned char* in, size_t inLength) {} }; } // namespace aria2 #endif #endif // D_ARC4_DECRYPTOR_H