diff options
author | dscho <dscho> | 2004-08-30 15:45:58 +0000 |
---|---|---|
committer | dscho <dscho> | 2004-08-30 15:45:58 +0000 |
commit | 97299606daab079cd88a096308487341c113ccec (patch) | |
tree | d8f51cfacae63482f330ce20c07dc373c341e893 /libvncserver/auth.c | |
parent | 0d3b958b479e598b081b9848c34bb74aca9ee7fa (diff) | |
download | libtdevnc-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/auth.c')
-rwxr-xr-x | libvncserver/auth.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libvncserver/auth.c b/libvncserver/auth.c index ec253dd..06976a3 100755 --- a/libvncserver/auth.c +++ b/libvncserver/auth.c @@ -43,9 +43,9 @@ rfbAuthNewClient(cl) cl->state = RFB_AUTHENTICATION; - if (cl->screen->rfbAuthPasswdData && !cl->reverseConnection) { + if (cl->screen->authPasswdData && !cl->reverseConnection) { *(uint32_t *)buf = Swap32IfLE(rfbVncAuth); - vncRandomBytes(cl->authChallenge); + rfbRandomBytes(cl->authChallenge); memcpy(&buf[4], (char *)cl->authChallenge, CHALLENGESIZE); len = 4 + CHALLENGESIZE; } else { @@ -54,7 +54,7 @@ rfbAuthNewClient(cl) cl->state = RFB_INITIALISATION; } - if (WriteExact(cl, buf, len) < 0) { + if (rfbWriteExact(cl, buf, len) < 0) { rfbLogPerror("rfbAuthNewClient: write"); rfbCloseClient(cl); return; @@ -75,7 +75,7 @@ rfbAuthProcessClientMessage(cl) uint8_t response[CHALLENGESIZE]; uint32_t authResult; - if ((n = ReadExact(cl, (char *)response, CHALLENGESIZE)) <= 0) { + if ((n = rfbReadExact(cl, (char *)response, CHALLENGESIZE)) <= 0) { if (n != 0) rfbLogPerror("rfbAuthProcessClientMessage: read"); rfbCloseClient(cl); @@ -85,7 +85,7 @@ rfbAuthProcessClientMessage(cl) if(!cl->screen->passwordCheck(cl,(const char*)response,CHALLENGESIZE)) { rfbErr("rfbAuthProcessClientMessage: password check failed\n"); authResult = Swap32IfLE(rfbVncAuthFailed); - if (WriteExact(cl, (char *)&authResult, 4) < 0) { + if (rfbWriteExact(cl, (char *)&authResult, 4) < 0) { rfbLogPerror("rfbAuthProcessClientMessage: write"); } rfbCloseClient(cl); @@ -94,7 +94,7 @@ rfbAuthProcessClientMessage(cl) authResult = Swap32IfLE(rfbVncAuthOK); - if (WriteExact(cl, (char *)&authResult, 4) < 0) { + if (rfbWriteExact(cl, (char *)&authResult, 4) < 0) { rfbLogPerror("rfbAuthProcessClientMessage: write"); rfbCloseClient(cl); return; |