Mercurial > pidgin
comparison src/toc.c @ 2048:3366311426df
[gaim-migrate @ 2058]
little things
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sun, 17 Jun 2001 08:37:44 +0000 |
| parents | 705783e5ab8c |
| children | f192b1a52bc0 |
comparison
equal
deleted
inserted
replaced
| 2047:21f1f1e0d4c5 | 2048:3366311426df |
|---|---|
| 289 } | 289 } |
| 290 | 290 |
| 291 static unsigned char *roast_password(char *pass) | 291 static unsigned char *roast_password(char *pass) |
| 292 { | 292 { |
| 293 /* Trivial "encryption" */ | 293 /* Trivial "encryption" */ |
| 294 static char rp[256]; | 294 static unsigned char rp[256]; |
| 295 static char *roast = ROAST; | 295 static char *roast = ROAST; |
| 296 int pos = 2; | 296 int pos = 2; |
| 297 int x; | 297 int x; |
| 298 strcpy(rp, "0x"); | 298 strcpy(rp, "0x"); |
| 299 for (x = 0; (x < 150) && pass[x]; x++) | 299 for (x = 0; (x < 150) && pass[x]; x++) |
| 367 return; | 367 return; |
| 368 } | 368 } |
| 369 | 369 |
| 370 if (tdt->state == STATE_SIGNON_REQUEST) { | 370 if (tdt->state == STATE_SIGNON_REQUEST) { |
| 371 debug_printf("* TOC sends client SIGN_ON reply\n"); | 371 debug_printf("* TOC sends client SIGN_ON reply\n"); |
| 372 if (strncasecmp(buf + sizeof(struct sflap_hdr), "SIGN_ON", strlen("SIGN_ON"))) { | 372 if (g_strncasecmp(buf + sizeof(struct sflap_hdr), "SIGN_ON", strlen("SIGN_ON"))) { |
| 373 debug_printf("Didn't get SIGN_ON! buf was: %s\n", | 373 debug_printf("Didn't get SIGN_ON! buf was: %s\n", |
| 374 buf + sizeof(struct sflap_hdr)); | 374 buf + sizeof(struct sflap_hdr)); |
| 375 hide_login_progress(gc, _("Authentication Failed")); | 375 hide_login_progress(gc, _("Authentication Failed")); |
| 376 signoff(gc); | 376 signoff(gc); |
| 377 return; | 377 return; |
| 407 | 407 |
| 408 debug_printf("From TOC server: %s\n", buf + sizeof(struct sflap_hdr)); | 408 debug_printf("From TOC server: %s\n", buf + sizeof(struct sflap_hdr)); |
| 409 | 409 |
| 410 c = strtok(buf + sizeof(struct sflap_hdr), ":"); /* Ditch the first part */ | 410 c = strtok(buf + sizeof(struct sflap_hdr), ":"); /* Ditch the first part */ |
| 411 | 411 |
| 412 if (!strcasecmp(c, "SIGN_ON")) { | 412 if (!g_strcasecmp(c, "SIGN_ON")) { |
| 413 /* we should only get here after a PAUSE */ | 413 /* we should only get here after a PAUSE */ |
| 414 if (tdt->state != STATE_PAUSE) | 414 if (tdt->state != STATE_PAUSE) |
| 415 debug_printf("got SIGN_ON but not PAUSE!\n"); | 415 debug_printf("got SIGN_ON but not PAUSE!\n"); |
| 416 else { | 416 else { |
| 417 tdt->state = STATE_ONLINE; | 417 tdt->state = STATE_ONLINE; |
