From 3b98abd62460cb7ec71fddfdfa10825d2f0cf1bd Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 1 Sep 1999 19:58:29 +0000 Subject: [PATCH] memmove/bcopy fix from 1.1 branch git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11762 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/old/ChangeLog | 6 ++++++ src/lib/crypto/old/old_decrypt.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/lib/crypto/old/ChangeLog b/src/lib/crypto/old/ChangeLog index c3368c68d..440f77ce2 100644 --- a/src/lib/crypto/old/ChangeLog +++ b/src/lib/crypto/old/ChangeLog @@ -1,3 +1,9 @@ +1999-08-25 Ken Raeburn + + * 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 * Makefile.in: Do win32 build in subdir. diff --git a/src/lib/crypto/old/old_decrypt.c b/src/lib/crypto/old/old_decrypt.c index 26019e164..2d22648e2 100644 --- a/src/lib/crypto/old/old_decrypt.c +++ b/src/lib/crypto/old/old_decrypt.c @@ -27,6 +27,12 @@ #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; -- 2.26.2