summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-12-15 09:06:28 +1100
committerDamien Miller <djm@mindrot.org>1999-12-15 09:06:28 +1100
commit84093e9d7407b64673d20b38a02bca432f970ba6 (patch)
tree82839d5cf06598bbe4ca9365fd0291ce671e6bc9
parent6ae00d6c965e61fc394b8adb698e9d8c603bbe75 (diff)
downloadopenssh-git-84093e9d7407b64673d20b38a02bca432f970ba6.tar.gz
- Integrated patchs from Juergen Keil <jk@tools.de>
- Avoid void* pointer arithmatic - Use LDFLAGS correctly
-rw-r--r--ChangeLog5
-rw-r--r--atomicio.c4
-rw-r--r--cipher.c10
-rw-r--r--configure.in2
4 files changed, 13 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 0bd6c4e7..f96ddd45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+19991215
+ - Integrated patchs from Juergen Keil <jk@tools.de>
+ - Avoid void* pointer arithmatic
+ - Use LDFLAGS correctly
+
19991214
- OpenBSD CVS Changes
- [canohost.c]
diff --git a/atomicio.c b/atomicio.c
index 46ffee35..fcab2ea7 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 3d5895c0..b06564d4 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 aa23baec..f77e46a0 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)