summaryrefslogtreecommitdiffstats
path: root/libvncserver/vncauth.c
diff options
context:
space:
mode:
authordscho <dscho>2004-08-30 15:45:58 +0000
committerdscho <dscho>2004-08-30 15:45:58 +0000
commit97299606daab079cd88a096308487341c113ccec (patch)
treed8f51cfacae63482f330ce20c07dc373c341e893 /libvncserver/vncauth.c
parent0d3b958b479e598b081b9848c34bb74aca9ee7fa (diff)
downloadlibtdevnc-97299606daab079cd88a096308487341c113ccec.tar.gz
libtdevnc-97299606daab079cd88a096308487341c113ccec.zip
global structures/functions should have "rfb", "sra" or "zrle" as prefix,
while structure members should not
Diffstat (limited to 'libvncserver/vncauth.c')
-rw-r--r--libvncserver/vncauth.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libvncserver/vncauth.c b/libvncserver/vncauth.c
index 2146e67..f530cc4 100644
--- a/libvncserver/vncauth.c
+++ b/libvncserver/vncauth.c
@@ -62,7 +62,7 @@ static unsigned char fixedkey[8] = {23,82,107,6,35,78,88,7};
*/
int
-vncEncryptAndStorePasswd(char *passwd, char *fname)
+rfbEncryptAndStorePasswd(char *passwd, char *fname)
{
FILE *fp;
unsigned int i;
@@ -88,8 +88,8 @@ vncEncryptAndStorePasswd(char *passwd, char *fname)
/* Do encryption in-place - this way we overwrite our copy of the plaintext
password */
- deskey(fixedkey, EN0);
- des(encryptedPasswd, encryptedPasswd);
+ rfbDesKey(fixedkey, EN0);
+ rfbDes(encryptedPasswd, encryptedPasswd);
for (i = 0; i < 8; i++) {
putc(encryptedPasswd[i], fp);
@@ -107,7 +107,7 @@ vncEncryptAndStorePasswd(char *passwd, char *fname)
*/
char *
-vncDecryptPasswdFromFile(char *fname)
+rfbDecryptPasswdFromFile(char *fname)
{
FILE *fp;
int i, ch;
@@ -126,8 +126,8 @@ vncDecryptPasswdFromFile(char *fname)
fclose(fp);
- deskey(fixedkey, DE1);
- des(passwd, passwd);
+ rfbDesKey(fixedkey, DE1);
+ rfbDes(passwd, passwd);
passwd[8] = 0;
@@ -141,7 +141,7 @@ vncDecryptPasswdFromFile(char *fname)
*/
void
-vncRandomBytes(unsigned char *bytes)
+rfbRandomBytes(unsigned char *bytes)
{
int i;
static rfbBool s_srandom_called = FALSE;
@@ -162,7 +162,7 @@ vncRandomBytes(unsigned char *bytes)
*/
void
-vncEncryptBytes(unsigned char *bytes, char *passwd)
+rfbEncryptBytes(unsigned char *bytes, char *passwd)
{
unsigned char key[8];
unsigned int i;
@@ -177,9 +177,9 @@ vncEncryptBytes(unsigned char *bytes, char *passwd)
}
}
- deskey(key, EN0);
+ rfbDesKey(key, EN0);
for (i = 0; i < CHALLENGESIZE; i += 8) {
- des(bytes+i, bytes+i);
+ rfbDes(bytes+i, bytes+i);
}
}