[Bug 675] cipher.c error when building against openssl 0.9.5a on Mandrake 7.2
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Fri Sep 19 23:37:08 EST 2003
http://bugzilla.mindrot.org/show_bug.cgi?id=675
------- Additional Comments From dtucker at zip.com.au 2003-09-19 23:37 -------
Info provide by Martin Vermeer (martin.vermeer at hut.fi):
The latest openssh didn't build for me apparently because of my old
openssl (openssl-0.9.5a-2.6.x installed as rpm). I managed to fix and
get it working, however. The fix is as follows (sorry for not having a
patch -- if this is of interest to you I could checkout the CVS and
make one):
1) in cipher-aes.c add the stanza
#if OPENSSL_VERSION_NUMBER < 0x00906000L
#define SSH_OLD_EVP
#endif
to the beginning of the file (under #include "includes.h")
2) in cipher-ctr.c do the same (under #include "xmalloc.h")
3) in cipher-3des1.c, do the same
4) in cipher-ctr.c line 97, replace key_len by buf_len
[Is this right? No idea. key_len doesn't compile.]
5) in cipher-ctr.c, add the following conditional around 'flags':
#ifndef SSH_OLD_EVP
aes_ctr.flags = EVP_CIPH_CBC_MODE | EVP_CIPH_VARIABLE_LENGTH |
EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CUSTOM_IV;
#endif
That's it. Apparently this was never tested as RH 6.2 is getting old :-(
- Martin V
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-bugs
mailing list