2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Fixed compile error without gnutls/libgcrypt/libgpg-error and 
openSSL
        installed
        * src/ARC4Encryptor.h
        * src/ARC4Decryptor.h
pull/1/head
Tatsuhiro Tsujikawa 2008-04-13 01:33:48 +00:00
parent 5f56e52498
commit 0516a07fa6
3 changed files with 49 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
installed
* src/ARC4Encryptor.h
* src/ARC4Decryptor.h
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Renamed argument from 'errno' to 'err', since errno is confused with

View File

@ -40,6 +40,26 @@
# include "LibgcryptARC4Decryptor.h"
#elif HAVE_LIBSSL
# include "LibsslARC4Decryptor.h"
#endif // HAVE_LIBSSL
#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_

View File

@ -40,6 +40,26 @@
# include "LibgcryptARC4Encryptor.h"
#elif HAVE_LIBSSL
# include "LibsslARC4Encryptor.h"
#endif // HAVE_LIBSSL
#else
// provide empty implementation to compile sources without both libgcrypt and
// openssl installed
namespace aria2 {
class ARC4Encryptor {
public:
ARC4Encryptor() {}
~ARC4Encryptor() {}
void init(const unsigned char* key, size_t keyLength) {}
void encrypt(unsigned char* out, size_t outLength,
const unsigned char* in, size_t inLength) {}
};
} // namespace aria2
#endif
#endif // _D_ARC4_ENCRYPTOR_H_