[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libssh 0.4.0rc1


Hello!

On 02.11.2009 22:45 Aris Adamantiadis wrote:
> I just looked. The two lines doing errors are:
>   crypto->cbc_encrypt(crypto, data, out, len,
>       session->current_crypto->encryptIV);
> gcc bitches about a macro but there is no macro there. I suspect
> cbc_encrypt is declared as a macro somewhere in openssl's headers.
> There's something in crypto.h meant to avoid this but seems it got
> overwritten.
 Yes, you are right:

$ fgrep -R des_cbc_encrypt *
crypto/openssl/crypto/des/des_old.h:#define des_cbc_encrypt(i,o,l,k,iv,e)\
crypto/openssl/crypto/des/des_old.h:#define des_cbc_encrypt(i,o,l,k,iv,e)\
crypto/openssl/crypto/des/des_old.h:
_ossl_old_des_cbc_encrypt((i),(o),(l),(k),(iv),(e))
crypto/openssl/crypto/des/des_old.h:void
_ossl_old_des_cbc_encrypt(_ossl_old_des_cblock
*input,_ossl_old_des_cblock *output,long length,
crypto/openssl/crypto/des/des_old.h:#  define cbc_encrypt des_cbc_encrypt

> Could you test this patch ?
 Unfortunately this didn't help.

 Thanks!

Best regards,
Alexander


Follow-Ups:
Re: libssh 0.4.0rc1Alexander Logvinov <avl@xxxxxxxxxxxx>
References:
Re: libssh 0.4.0rc1Alexander Logvinov <avl@xxxxxxxxxxxx>
Re: libssh 0.4.0rc1Aris Adamantiadis <aris@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org