[1860] in Moira
change to moira/update to fix encrypted transfer
daemon@ATHENA.MIT.EDU (Qing Dong)
Fri Aug 31 17:11:04 2001
Message-Id: <200108312111.RAA23486@melbourne-city-street.mit.edu>
Date: Fri, 31 Aug 2001 17:11:03 -0400
To: moiradev@mit.edu
From: Qing Dong <dongq@MIT.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
I am porting the update_server code to windows. Right now the encrypted
transfer doesn't work properly and I remember Jamie talked to people on
moira-dev about it.
Did he submit a patch to you to fix this problem? If not, I believe this is
what he wants to fix:
Thanks,
Qing
Index: send_file.c
===================================================================
RCS file:
\\dongq-afs\all\athena.mit.edu\astaff\project\moiradev\repository/moira/upda
te/send_file.c,v
retrieving revision 1.15
diff -c -r1.15 send_file.c
*** send_file.c 2001/01/08 19:28:12 1.15
--- send_file.c 2001/08/31 19:40:11
***************
*** 121,127 ****
if (encrypt)
{
memset(data + n, 0, sizeof(data) -n);
! des_pcbc_encrypt(data, enc, n, sched, ivec, 0);
/* save vector to continue chaining */
for (i = 0; i < 8; i++)
ivec[i] = data[n - 8 + i] ^ enc[n - 8 + i];
--- 121,127 ----
if (encrypt)
{
memset(data + n, 0, sizeof(data) -n);
! des_pcbc_encrypt(data, enc, (n + 7) & ~7, sched, ivec, 0);
/* save vector to continue chaining */
for (i = 0; i < 8; i++)
ivec[i] = data[n - 8 + i] ^ enc[n - 8 + i];