Changeset af7f046 for protocols/jabber/io.c
- Timestamp:
- 2010-03-14T16:56:00Z (15 years ago)
- Branches:
- master
- Children:
- 8fb1263
- Parents:
- 435f552
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/io.c
r435f552 raf7f046 441 441 imcb_log( ic, "Converting stream to TLS" ); 442 442 443 jd->flags |= JFLAG_STARTTLS_DONE; 443 444 jd->ssl = ssl_starttls( jd->fd, jabber_connected_ssl, ic ); 444 445 … … 531 532 jd->r_inpa = b_input_add( jd->fd, GAIM_INPUT_READ, jabber_read_callback, ic ); 532 533 533 greet = g_strdup_printf( "<?xml version='1.0' ?>" 534 "<stream:stream to=\"%s\" xmlns=\"jabber:client\" " 535 "xmlns:stream=\"http://etherx.jabber.org/streams\" version=\"1.0\">", jd->server ); 534 greet = g_strdup_printf( "%s<stream:stream to=\"%s\" xmlns=\"jabber:client\" " 535 "xmlns:stream=\"http://etherx.jabber.org/streams\" version=\"1.0\">", 536 ( jd->flags & JFLAG_STARTTLS_DONE ) ? "" : "<?xml version='1.0' ?>", 537 jd->server ); 536 538 537 539 st = jabber_write( ic, greet, strlen( greet ) );
Note: See TracChangeset
for help on using the changeset viewer.