Changeset 662 for trunk/c2s/main.c
- Timestamp:
- 10/08/08 12:44:06 (5 months ago)
- Files:
-
- 1 modified
-
trunk/c2s/main.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/c2s/main.c
r639 r662 355 355 switch(cb) { 356 356 case sx_sasl_cb_GET_REALM: 357 357 358 358 if(s->req_to == NULL) /* this shouldn't happen */ 359 359 my_realm = ""; … … 415 415 return sx_sasl_ret_FAIL; 416 416 break; 417 417 418 418 case sx_sasl_cb_CHECK_AUTHZID: 419 419 creds = (sx_sasl_creds_t) arg; … … 495 495 return sx_sasl_ret_OK; 496 496 } 497 497 498 498 r = snprintf(buf, sizeof(buf), "authreg.mechanisms.sasl.%s",mechbuf); 499 499 if (r < -1 || r > sizeof(buf)) … … 558 558 union xhashv xhv; 559 559 time_t check_time = 0; 560 560 561 561 #ifdef HAVE_UMASK 562 562 umask((mode_t) 0027); … … 571 571 WSADATA wsaData; 572 572 int err; 573 573 574 574 wVersionRequested = MAKEWORD( 2, 2 ); 575 575 576 576 err = WSAStartup( wVersionRequested, &wsaData ); 577 577 if ( err != 0 ) { … … 691 691 } 692 692 #endif 693 693 694 694 /* get sasl online */ 695 695 c2s->sx_sasl = sx_env_plugin(c2s->sx_env, sx_sasl_init, "xmpp", _c2s_sx_sasl_callback, (void *) c2s); … … 708 708 /* get stanza ack up */ 709 709 sx_env_plugin(c2s->sx_env, sx_ack_init); 710 711 /* and user IP address plugin */ 712 sx_env_plugin(c2s->sx_env, sx_address_init); 710 713 #endif 711 714 … … 758 761 } 759 762 } 760 763 761 764 /* cleanup dead sess (before sx_t as sess->result uses sx_t nad cache) */ 762 765 while(jqueue_size(c2s->dead_sess) > 0) { … … 808 811 } 809 812 } 810 813 811 814 check_time = time(NULL); 812 815 } … … 814 817 815 818 log_write(c2s->log, LOG_NOTICE, "shutting down"); 816 819 817 820 if(xhash_iter_first(c2s->sessions)) 818 821 do {
