memmove/bcopy fix from 1.1 branch
authorKen Raeburn <raeburn@mit.edu>
Wed, 1 Sep 1999 19:58:29 +0000 (19:58 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 1 Sep 1999 19:58:29 +0000 (19:58 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11762 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/old/ChangeLog
src/lib/crypto/old/old_decrypt.c

index c3368c68dd288a39037865b2460d35be784110c4..440f77ce256245306f1658242b3e01aa060a7848 100644 (file)
@@ -1,3 +1,9 @@
+1999-08-25  Ken Raeburn  <raeburn@mit.edu>
+
+       * old_decrypt.c (memmove) [HAVE_BCOPY && !HAVE_MEMMOVE]: Define to
+       use bcopy.  Should work unless any system has no memmove *and*
+       bcopy isn't safe with overlaps.
+
 Mon May 10 15:20:32 1999  Danilo Almeida  <dalmeida@mit.edu>
 
        * Makefile.in: Do win32 build in subdir.
index 26019e1644d5ee826058b6500fadb4ca0057c356..2d22648e2d6459e18b22d4ff536c1eb9b20ce804 100644 (file)
 #include "k5-int.h"
 #include "old.h"
 
+#ifndef HAVE_MEMMOVE
+#ifdef HAVE_BCOPY
+#define memmove(dst,src,size) bcopy(src,dst,size)
+#endif
+#endif
+
 krb5_error_code
 krb5_old_decrypt(enc, hash, key, usage, ivec, input, arg_output)
      krb5_const struct krb5_enc_provider *enc;