- Timestamp:
- 2010-03-14T16:56:00Z (15 years ago)
- Branches:
- master
- Children:
- 8fb1263
- Parents:
- 435f552
- Location:
- protocols/jabber
- Files:
-
- 2 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 ) ); -
protocols/jabber/jabber.h
r435f552 raf7f046 46 46 activates all XEP-85 related code. */ 47 47 JFLAG_XMLCONSOLE = 64, /* If the user added an xmlconsole buddy. */ 48 JFLAG_STARTTLS_DONE = 128, /* If a plaintext session was converted to TLS. */ 48 49 } jabber_flags_t; 49 50
Note: See TracChangeset
for help on using the changeset viewer.