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
pull/1/head
Tatsuhiro Tsujikawa 2008-04-13 01:31:53 +00:00
parent d13c416a94
commit 5f56e52498
5 changed files with 17 additions and 8 deletions

View File

@ -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.

View File

@ -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) {}

View File

@ -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() {}

View File

@ -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() {}

View File

@ -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():