Mercurial > hg > xemacs-beta
comparison lib-src/gnuserv.c @ 462:0784d089fdc9 r21-2-46
Import from CVS: tag r21-2-46
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:44:37 +0200 |
parents | 223736d75acb |
children | 023b83f4e54b |
comparison
equal
deleted
inserted
replaced
461:120ed4009e51 | 462:0784d089fdc9 |
---|---|
498 if (timed_read(fd, buf, auth_data_len, AUTH_TIMEOUT, 0) != auth_data_len) | 498 if (timed_read(fd, buf, auth_data_len, AUTH_TIMEOUT, 0) != auth_data_len) |
499 return FALSE; | 499 return FALSE; |
500 | 500 |
501 #ifdef AUTH_MAGIC_COOKIE | 501 #ifdef AUTH_MAGIC_COOKIE |
502 if (server_xauth && server_xauth->data) | 502 if (server_xauth && server_xauth->data) |
503 { | 503 { |
504 /* Do a compare without comprising info about | 504 /* Do a compare without comprising info about |
505 the size of the cookie */ | 505 the size of the cookie */ |
506 int auth_data_pos; | 506 int auth_data_pos; |
507 int auth_mismatches = | 507 int auth_mismatches = |
508 ( auth_data_len ^ | 508 ( auth_data_len ^ |
515 | 515 |
516 if (auth_mismatches == 0) | 516 if (auth_mismatches == 0) |
517 return TRUE; | 517 return TRUE; |
518 | 518 |
519 for(;rand() % 1000;); | 519 for(;rand() % 1000;); |
520 } | 520 } |
521 | 521 |
522 #else | 522 #else |
523 printf ("client tried Xauth, but server is not compiled with Xauth\n"); | 523 printf ("client tried Xauth, but server is not compiled with Xauth\n"); |
524 #endif | 524 #endif |
525 | 525 |