mirror of https://github.com/aria2/aria2
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Renamed argument from 'errno' to 'err', since errno is confused with errno defined in errno.h. * src/LibgcryptARC4Decryptor.h * src/LibgcryptARC4Context.h * src/LibgcryptDHKeyExchange.h * src/LibgcryptARC4Encryptor.hpull/1/head
parent
d13c416a94
commit
5f56e52498
|
@ -1,3 +1,12 @@
|
|||
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Renamed argument from 'errno' to 'err', since errno is confused with
|
||||
errno defined in errno.h.
|
||||
* src/LibgcryptARC4Decryptor.h
|
||||
* src/LibgcryptARC4Context.h
|
||||
* src/LibgcryptDHKeyExchange.h
|
||||
* src/LibgcryptARC4Encryptor.h
|
||||
|
||||
2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Rewritten choking algorithm.
|
||||
|
|
|
@ -45,10 +45,10 @@ class LibgcryptARC4Context {
|
|||
private:
|
||||
gcry_cipher_hd_t _cipherCtx;
|
||||
|
||||
void handleError(gcry_error_t errno) const
|
||||
void handleError(gcry_error_t err) const
|
||||
{
|
||||
throw new DlAbortEx("Exception in libgcrypt routine(ARC4Context class): %s",
|
||||
gcry_strerror(errno));
|
||||
gcry_strerror(err));
|
||||
}
|
||||
public:
|
||||
LibgcryptARC4Context():_cipherCtx(0) {}
|
||||
|
|
|
@ -46,10 +46,10 @@ class ARC4Decryptor {
|
|||
private:
|
||||
LibgcryptARC4Context _ctx;
|
||||
|
||||
void handleError(gcry_error_t errno) const
|
||||
void handleError(gcry_error_t err) const
|
||||
{
|
||||
throw new DlAbortEx("Exception in libgcrypt routine(ARC4Decryptor class): %s",
|
||||
gcry_strerror(errno));
|
||||
gcry_strerror(err));
|
||||
}
|
||||
public:
|
||||
ARC4Decryptor() {}
|
||||
|
|
|
@ -46,10 +46,10 @@ class ARC4Encryptor {
|
|||
private:
|
||||
LibgcryptARC4Context _ctx;
|
||||
|
||||
void handleError(gcry_error_t errno) const
|
||||
void handleError(gcry_error_t err) const
|
||||
{
|
||||
throw new DlAbortEx("Exception in libgcrypt routine(ARC4Encryptor class): %s",
|
||||
gcry_strerror(errno));
|
||||
gcry_strerror(err));
|
||||
}
|
||||
public:
|
||||
ARC4Encryptor() {}
|
||||
|
|
|
@ -53,10 +53,10 @@ private:
|
|||
|
||||
gcry_mpi_t _publicKey;
|
||||
|
||||
void handleError(int errno) const
|
||||
void handleError(gcry_error_t err) const
|
||||
{
|
||||
throw new DlAbortEx("Exception in libgcrypt routine(DHKeyExchange class): %s",
|
||||
gcry_strerror(errno));
|
||||
gcry_strerror(err));
|
||||
}
|
||||
public:
|
||||
DHKeyExchange():
|
||||
|
|
Loading…
Reference in New Issue