replaced decrypt into kdecrypt

This commit is contained in:
chombier 2002-08-24 10:19:38 +00:00
parent 3fdb2e5f22
commit f03f50da96
1 changed files with 2 additions and 2 deletions

View File

@ -479,7 +479,7 @@ short netread(short pnum, void *buffer, short n)
/* Decrypt data */ /* Decrypt data */
if (p->aedata && ((tnParams *)p->aedata)->decrypting) if (p->aedata && ((tnParams *)p->aedata)->decrypting)
decrypt((tnParams *)p->aedata, buffer, (long)reqdamt); kdecrypt((tnParams *)p->aedata, buffer, (long)reqdamt);
MyPBreturn(pbp); MyPBreturn(pbp);
return(reqdamt); return(reqdamt);
@ -654,7 +654,7 @@ short Rnetwrite(short pnum, void *buffer, short nsend)
* encrypt if encrypting the session * encrypt if encrypting the session
*/ */
if (p->aedata && ((tnParams *)p->aedata)->encrypting) if (p->aedata && ((tnParams *)p->aedata)->encrypting)
encrypt((tnParams *)p->aedata, (unsigned char *)swds[m].ptr, swds[m].length); kencrypt((tnParams *)p->aedata, (unsigned char *)swds[m].ptr, swds[m].length);
buffer=(void *)((char *)buffer + swds[m].length); buffer=(void *)((char *)buffer + swds[m].length);
} }