diff --git a/ChangeLog b/ChangeLog index 0bd6c4e7b..f96ddd454 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +19991215 + - Integrated patchs from Juergen Keil + - Avoid void* pointer arithmatic + - Use LDFLAGS correctly + 19991214 - OpenBSD CVS Changes - [canohost.c] diff --git a/atomicio.c b/atomicio.c index 46ffee357..fcab2ea7f 100644 --- a/atomicio.c +++ b/atomicio.c @@ -24,7 +24,7 @@ */ #include "includes.h" -RCSID("$Id: atomicio.c,v 1.7 1999/12/07 06:03:33 damien Exp $"); +RCSID("$Id: atomicio.c,v 1.8 1999/12/14 22:06:28 damien Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -42,7 +42,7 @@ atomicio(f, fd, s, n) int res, pos = 0; while (n > pos) { - res = (f) (fd, s + pos, n - pos); + res = (f) (fd, (char*)s + pos, n - pos); switch (res) { case -1: if (errno == EINTR || errno == EAGAIN) diff --git a/cipher.c b/cipher.c index 3d5895c0f..b06564d4a 100644 --- a/cipher.c +++ b/cipher.c @@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$Id: cipher.c,v 1.9 1999/12/12 21:27:33 damien Exp $"); +RCSID("$Id: cipher.c,v 1.10 1999/12/14 22:06:28 damien Exp $"); #include "ssh.h" #include "cipher.h" @@ -48,13 +48,13 @@ SSH_3CBC_ENCRYPT(des_key_schedule ks1, memcpy(&iv1, iv2, 8); des_cbc_encrypt(src, dest, len, ks1, &iv1, DES_ENCRYPT); - memcpy(&iv1, dest + len - 8, 8); + memcpy(&iv1, (char *)dest + len - 8, 8); des_cbc_encrypt(dest, dest, len, ks2, iv2, DES_DECRYPT); memcpy(iv2, &iv1, 8); /* Note how iv1 == iv2 on entry and exit. */ des_cbc_encrypt(dest, dest, len, ks3, iv3, DES_ENCRYPT); - memcpy(iv3, dest + len - 8, 8); + memcpy(iv3, (char *)dest + len - 8, 8); } void @@ -69,10 +69,10 @@ SSH_3CBC_DECRYPT(des_key_schedule ks1, memcpy(&iv1, iv2, 8); des_cbc_encrypt(src, dest, len, ks3, iv3, DES_DECRYPT); - memcpy(iv3, src + len - 8, 8); + memcpy(iv3, (char *)src + len - 8, 8); des_cbc_encrypt(dest, dest, len, ks2, iv2, DES_ENCRYPT); - memcpy(iv2, dest + len - 8, 8); + memcpy(iv2, (char *)dest + len - 8, 8); des_cbc_encrypt(dest, dest, len, ks1, &iv1, DES_DECRYPT); /* memcpy(&iv1, iv2, 8); */ diff --git a/configure.in b/configure.in index aa23baece..f77e46a09 100644 --- a/configure.in +++ b/configure.in @@ -31,7 +31,7 @@ AC_SUBST(ssldir) AC_DEFINE_UNQUOTED(ssldir, "$ssldir") if test "$ssldir" != "/usr"; then CFLAGS="$CFLAGS -I$ssldir/include" - LIBS="$LIBS -L$ssldir/lib" + LDFLAGS="$LDFLAGS -L$ssldir/lib" fi LIBS="$LIBS -lssl -lcrypto" AC_MSG_RESULT($ssldir)