Skip to content

Commit

Permalink
add hostname note for XMPP setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ioerror committed Aug 13, 2010
1 parent db1db48 commit fc3b456
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sslscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ int tcpConnect(struct sslCheckOptions *options)

/* This is so ghetto, you cannot release it! */
char xmpp_setup[255];
/* TODO - options->host isn't always the host you want to test
eg:
talk.google.com actually expects gmail.com, not talk.google.com
jabber.ccc.de expects jabber.ccc.de
*/
sprintf(xmpp_setup, "<stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='%s' version='1.0'>\r\n", options->host);
tlsStarted = 1;
memset(buffer, 0, BUFFERSIZE);
Expand Down

0 comments on commit fc3b456

Please sign in to comment.